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 22, 2022
1 parent 555e2f6 commit 5b18ec4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ node_modules/
npm-shrinkwrap.json
package-lock.json
yarn.lock

.npmignore
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"faucet": "bin/cmd.js"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint",
"tests-only": "tape test/**/*.js | node bin/cmd",
Expand Down Expand Up @@ -51,6 +52,14 @@
"license": "MIT",
"devDependencies": {
"@ljharb/eslint-config": "^21.0.0",
"eslint": "=8.8.0"
"eslint": "=8.8.0",
"npmignore": "^0.3.0"
},
"publishConfig": {
"ignore": [
".github/workflows",
"images/",
"example/"
]
}
}

0 comments on commit 5b18ec4

Please sign in to comment.