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 Sep 15, 2022
1 parent f32d826 commit 6ad2312
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ npm-shrinkwrap.json
package-lock.json
yarn-error.log
yarn.lock

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

This file was deleted.

14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"main": "lib/index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"build": "rimraf lib && babel src --out-dir lib --copy-files",
"create": "node ./scripts/create-rule",
"flow": "flow",
Expand Down Expand Up @@ -56,6 +57,7 @@
"jscodeshift": "^0.7.1",
"markdown-magic": "^2.6.1",
"minimist": "^1.2.6",
"npmignore": "^0.3.0",
"object.assign": "^4.1.2",
"rimraf": "^3.0.2",
"safe-publish-latest": "^2.0.0",
Expand Down Expand Up @@ -98,10 +100,16 @@
],
"testEnvironment": "node"
},
"greenkeeper": {
"publishConfig": {
"ignore": [
"jest",
"babel-jest"
"!lib",
".github/workflows",
".flowconfig",
"/src",
"/reports",
"/flow",
"scripts/",
"CONTRIBUTING.md"
]
}
}

0 comments on commit 6ad2312

Please sign in to comment.