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 Jun 24, 2022
1 parent 140127b commit 170c049
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 32 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -29,3 +29,5 @@ node_modules
npm-shrinkwrap.json
package-lock.json
yarn.lock

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

This file was deleted.

7 changes: 7 additions & 0 deletions package.json
Expand Up @@ -19,6 +19,7 @@
"package.json": "./package.json"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run lint",
Expand Down Expand Up @@ -50,12 +51,18 @@
"aud": "^2.0.0",
"eslint": "=8.8.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"nyc": "^14.1.1",
"safe-publish-latest": "^2.0.0",
"tape": "^5.5.3"
},
"engines": {
"npm": "^6.13.4 || ^7 || ^8",
"node": "^6.2 || ^7 || ^8 || ^9.3 || ^10 || >= 11.2"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 170c049

Please sign in to comment.