Skip to content

Commit 07f868c

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent d037398 commit 07f868c

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ yarn.lock
99
# Coverage
1010
coverage
1111
.nyc_output
12+
13+
.npmignore

.npmignore

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
"has-tostringtag": "^1.0.0",
1818
"make-arrow-function": "^1.2.0",
1919
"mock-property": "^1.0.0",
20+
"npmignore": "^0.3.0",
2021
"nyc": "^10.3.2",
2122
"safe-publish-latest": "^2.0.0",
2223
"string.prototype.repeat": "^1.0.0",
2324
"tape": "^5.5.3"
2425
},
2526
"scripts": {
27+
"prepack": "npmignore --auto --commentLines=autogenerated",
2628
"prepublish": "not-in-publish || npm run prepublishOnly",
2729
"prepublishOnly": "safe-publish-latest",
2830
"pretest": "npm run lint",
@@ -81,5 +83,11 @@
8183
"commitLimit": false,
8284
"backfillLimit": false,
8385
"hideCredit": true
86+
},
87+
"publishConfig": {
88+
"ignore": [
89+
".github/workflows",
90+
"./test-core-js.js"
91+
]
8492
}
8593
}

0 commit comments

Comments
 (0)