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 Dec 13, 2022
1 parent 1b7088f commit 56f7e71
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 68 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ typings/
npm-shrinkwrap.json
package-lock.json
yarn.lock

.npmignore
68 changes: 0 additions & 68 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": "ES spec-like internal slots",
"main": "index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"version": "auto-changelog && git add CHANGELOG.md",
Expand Down Expand Up @@ -45,6 +46,7 @@
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"for-each": "^0.3.3",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object-inspect": "^1.12.2",
"safe-publish-latest": "^2.0.0",
Expand All @@ -60,5 +62,10 @@
"unreleased": false,
"commitLimit": false,
"backfillLimit": false
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 56f7e71

Please sign in to comment.