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 4fb99f9 commit 4f54d5e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 44 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ node_modules
npm-shrinkwrap.json
package-lock.json
yarn.lock

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

This file was deleted.

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
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",
"lint": "eslint --ext=js,mjs .",
Expand Down Expand Up @@ -51,6 +52,10 @@
"url": "https://github.com/es-shims/Object.hasOwn/issues"
},
"homepage": "https://github.com/es-shims/Object.hasOwn",
"dependencies": {
"define-properties": "^1.1.4",
"es-abstract": "^1.19.5"
},
"devDependencies": {
"@es-shims/api": "^2.2.3",
"@ljharb/eslint-config": "^20.2.3",
Expand All @@ -61,6 +66,7 @@
"functions-have-names": "^1.2.3",
"has-strict-mode": "^1.0.1",
"has-symbols": "^1.0.3",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.5.3"
Expand All @@ -73,8 +79,9 @@
"backfillLimit": false,
"hideCredit": true
},
"dependencies": {
"define-properties": "^1.1.4",
"es-abstract": "^1.19.5"
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 4f54d5e

Please sign in to comment.