Skip to content

Commit

Permalink
[*] [meta] use npmignore to autogenerate an npmignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 4, 2022
1 parent 5cc4800 commit e19f32c
Show file tree
Hide file tree
Showing 28 changed files with 93 additions and 157 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ packages/*/LICENSE.md
packages/enzyme/README.md
packages/enzyme-adapter-react-*/README.md
packages/enzyme-adapter-utils*/README.md

.npmignore
39 changes: 0 additions & 39 deletions .npmignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/enzyme-adapter-react-13/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-13/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -63,7 +64,13 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"rimraf": "^2.7.1",
"safe-publish-latest": "^2.0.0"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
1 change: 0 additions & 1 deletion packages/enzyme-adapter-react-14/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-14/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -67,7 +68,13 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"rimraf": "^2.7.1",
"safe-publish-latest": "^2.0.0"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
1 change: 0 additions & 1 deletion packages/enzyme-adapter-react-15.4/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-15.4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -67,7 +68,13 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"rimraf": "^2.7.1",
"safe-publish-latest": "^2.0.0"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
1 change: 0 additions & 1 deletion packages/enzyme-adapter-react-15/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -66,7 +67,13 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"rimraf": "^2.7.1",
"safe-publish-latest": "^2.0.0"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
36 changes: 0 additions & 36 deletions packages/enzyme-adapter-react-16.1/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-16.1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -67,7 +68,13 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"rimraf": "^2.7.1",
"safe-publish-latest": "^2.0.0"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
36 changes: 0 additions & 36 deletions packages/enzyme-adapter-react-16.2/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-16.2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -68,7 +69,13 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"rimraf": "^2.7.1",
"safe-publish-latest": "^2.0.0"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
36 changes: 0 additions & 36 deletions packages/enzyme-adapter-react-16.3/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-16.3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -68,7 +69,13 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"rimraf": "^2.7.1",
"safe-publish-latest": "^2.0.0"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
1 change: 0 additions & 1 deletion packages/enzyme-adapter-react-16/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -69,7 +70,13 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"rimraf": "^2.7.1",
"safe-publish-latest": "^2.0.0"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
1 change: 0 additions & 1 deletion packages/enzyme-adapter-react-helper/.npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions packages/enzyme-adapter-react-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"homepage": "https://enzymejs.github.io/enzyme/",
"main": "build",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated --gitignore=../../.gitignore",
"clean": "rimraf build",
"lint": "eslint --ext js,jsx .",
"pretest": "npm run lint",
Expand Down Expand Up @@ -56,6 +57,7 @@
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"react": "0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0 || ^16.3.0-0 || ^16.4.0-0",
"safe-publish-latest": "^2.0.0"
},
Expand All @@ -71,5 +73,10 @@
"object.getownpropertydescriptors": "^2.1.2",
"rimraf": "^2.7.1",
"semver": "^5.7.1"
},
"publishConfig": {
"ignore": [
"!build"
]
}
}
1 change: 0 additions & 1 deletion packages/enzyme-adapter-utils/.npmignore

This file was deleted.

Loading

0 comments on commit e19f32c

Please sign in to comment.