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 Oct 12, 2022
1 parent 18cadf9 commit 2e2007a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -6,3 +6,5 @@ node_modules
npm-shrinkwrap.json
package-lock.json
yarn.lock

.npmignore
7 changes: 7 additions & 0 deletions package.json
Expand Up @@ -13,6 +13,7 @@
"aud": "^2.0.1",
"eslint": "=8.8.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"safe-publish-latest": "^2.0.0",
"tape": "^5.6.1"
},
Expand All @@ -30,12 +31,18 @@
"url": "http://github.com/substack/node-shell-quote.git"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint",
"tests-only": "tape 'test/**/*.js'",
"test": "npm run tests-only",
"posttest": "aud --production"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 2e2007a

Please sign in to comment.