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 Aug 5, 2022
1 parent 9a1ccf5 commit 2627269
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ yarn.lock

coverage
.nyc_output

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

This file was deleted.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"test": "test"
},
"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 @@ -53,6 +54,7 @@
"eslint": "=8.8.0",
"has-symbols": "^1.0.3",
"has-typed-arrays": "^1.0.1",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"object.getownpropertydescriptors": "^2.1.4",
"safe-publish-latest": "^2.0.0",
Expand Down Expand Up @@ -123,5 +125,10 @@
},
"browser": {
"assert.js": false
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

0 comments on commit 2627269

Please sign in to comment.