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 Nov 1, 2022
1 parent 8baba96 commit 919afcd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ yarn.lock

coverage/
.nyc_output/

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

This file was deleted.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,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 @@ -69,6 +70,7 @@
"for-each": "^0.3.3",
"in-publish": "^2.0.1",
"make-arrow-function": "~1.1.0",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object.assign": "^4.1.4",
"safe-publish-latest": "^2.0.0",
Expand Down Expand Up @@ -96,17 +98,17 @@
"engines": {
"node": ">= 0.4"
},
"greenkeeper": {
"ignore": [
"core-js"
]
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 919afcd

Please sign in to comment.