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 May 5, 2022
1 parent 1a245c6 commit 12cc602
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -9,3 +9,5 @@ package-lock.json
# coverage data
coverage/
.nyc_output/

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

This file was deleted.

9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -59,11 +59,13 @@
"falafel": "^2.2.4",
"js-yaml": "^3.14.0",
"npm-run-posix-or-windows": "^2.0.2",
"npmignore": "^0.3.0",
"safe-publish-latest": "^2.0.0",
"tap": "^8.0.1",
"tap-parser": "^3.0.5"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",
"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly",
"prelint:files": "git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js'",
Expand Down Expand Up @@ -106,5 +108,10 @@
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT"
"license": "MIT",
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 12cc602

Please sign in to comment.