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 7, 2022
1 parent 03169d4 commit 53afc39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 43 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ dist/
npm-shrinkwrap.json
package-lock.json
yarn.lock

.npmignore
43 changes: 0 additions & 43 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 @@ -12,6 +12,7 @@
"./implementation": "./implementation.browser.js"
},
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest && npm run build",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run lint",
Expand Down Expand Up @@ -86,5 +87,11 @@
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"publishConfig": {
"ignore": [
"browserShim.js",
".github/workflows"
]
}
}

0 comments on commit 53afc39

Please sign in to comment.