Skip to content

Commit f81ece6

Browse files
committed
[meta] use npmignore to autogenerate an npmignore file
1 parent 6b164c7 commit f81ece6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ node_modules
66
npm-shrinkwrap.json
77
package-lock.json
88
yarn.lock
9+
10+
.npmignore

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
"main": "index.js",
66
"devDependencies": {
77
"covert": "^1.0.0",
8+
"npmignore": "^0.3.0",
89
"tap": "~0.4.0",
910
"tape": "^3.5.0"
1011
},
1112
"scripts": {
13+
"prepack": "npmignore --auto --commentLines=auto",
1214
"test": "tap test/*.js",
1315
"coverage": "covert test/*.js"
1416
},
@@ -41,5 +43,10 @@
4143
"email": "[email protected]",
4244
"url": "http://substack.net"
4345
},
44-
"license": "MIT"
46+
"license": "MIT",
47+
"publishConfig": {
48+
"ignore": [
49+
".github/workflows"
50+
]
51+
}
4552
}

0 commit comments

Comments
 (0)