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 11, 2022
1 parent 7dda9d0 commit 3192d38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 38 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ node_modules
yarn.lock
package-lock.json
npm-shrinkwrap.json

.npmignore
38 changes: 0 additions & 38 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 @@ -20,6 +20,7 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
"prepublishOnly": "safe-publish-latest",
Expand Down Expand Up @@ -60,6 +61,7 @@
"make-arrow-function": "^1.2.0",
"make-async-function": "^1.0.0",
"make-generator-function": "^2.0.0",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object-inspect": "^1.12.2",
"rimraf": "^2.7.1",
Expand Down Expand Up @@ -95,5 +97,10 @@
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "v1.2.5"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 3192d38

Please sign in to comment.