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 Jun 22, 2022
1 parent 1cd3f75 commit 5d342c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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-debug.log
npm-shrinkwrap.json
package-lock.json
yarn.lock

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

This file was deleted.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "AST utility module for statically analyzing JSX",
"main": "lib/index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prebuild": "rimraf lib",
"build": "babel src --out-dir lib",
"prepublishOnly": "safe-publish-latest && npm test && npm run build",
Expand Down Expand Up @@ -36,6 +37,7 @@
"in-publish": "^2.0.1",
"jest": "^20.0.4",
"jest-cli": "^20.0.4",
"npmignore": "^0.3.0",
"object.entries": "^1.1.5",
"object.fromentries": "^2.0.5",
"rimraf": "^2.7.1",
Expand Down Expand Up @@ -71,5 +73,10 @@
"dependencies": {
"array-includes": "^3.1.5",
"object.assign": "^4.1.2"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 5d342c9

Please sign in to comment.