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 0b1b1e6 commit 8970cdd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ coverage
npm-shrinkwrap.json
package-lock.json
yarn.lock

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

This file was deleted.

15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"prespackle": "git ls-files | xargs git check-attr spackled | grep -v 'unspecified$' | cut -d: -f1 | xargs rm || true",
"spackle": "node operations/spackle 1",
"postspackle": "git ls-files | xargs git check-attr spackled | grep -v 'unspecified$' | cut -d: -f1 | xargs git add",
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest && npm run spackle",
"pretest": "npm run lint",
Expand Down Expand Up @@ -93,6 +94,7 @@
"make-async-generator-function": "^1.0.0",
"make-generator-function": "^2.0.0",
"mock-property": "^1.0.0",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object.fromentries": "^2.0.5",
"safe-publish-latest": "^2.0.0",
Expand All @@ -119,5 +121,18 @@
},
"engines": {
"node": ">= 0.4"
},
"publishConfig": {
"ignore": [
".github",
"",
"# dev scripts",
"operations/*.js",
"!operations/20*.js",
"",
"test/",
"",
".gitattributes"
]
}
}

0 comments on commit 8970cdd

Please sign in to comment.