Skip to content

Commit e41c881

Browse files
committed
[meta] switch from files to npmignore
1 parent 8961374 commit e41c881

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@
33
"version": "5.1.6",
44
"description": "utility library for parsing asn1 files for use with browserify-sign.",
55
"main": "index.js",
6-
"files": [
7-
"asn1.js",
8-
"aesid.json",
9-
"certificate.js",
10-
"fixProc.js",
11-
"index.js"
12-
],
136
"scripts": {
7+
"prepack": "npmignore --auto --commentLines=autogenerated",
148
"lint": "eslint --ext=js,mjs .",
159
"tests-only": "tape 'test/**/*.js'",
1610
"pretest": "npm run lint",
@@ -38,6 +32,7 @@
3832
"aud": "^2.0.4",
3933
"auto-changelog": "^2.4.0",
4034
"eslint": "=8.8.0",
35+
"npmignore": "^0.3.1",
4136
"tape": "^5.7.5"
4237
},
4338
"engines": {
@@ -50,5 +45,11 @@
5045
"commitLimit": false,
5146
"backfillLimit": false,
5247
"hideCredit": true
48+
},
49+
"publishConfig": {
50+
"ignore": [
51+
".github/workflows",
52+
"test"
53+
]
5354
}
5455
}

0 commit comments

Comments
 (0)