Skip to content

Commit 772302b

Browse files
Add np for releasing
1 parent 98066d1 commit 772302b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"test": "ava -v test/**/*.js",
2222
"build": "rimraf dist transpile && tsc -p tsconfig.json & wait",
2323
"postbuild": "rollup --config rollup.config.js",
24-
"lint": "tslint -c tslint.json -p tsconfig.json"
24+
"lint": "tslint -c tslint.json -p tsconfig.json",
25+
"release": "np",
26+
"prepublishOnly": "npm run build"
2527
},
2628
"peerDependencies": {
2729
"rollup": ">= 0.67.4"
@@ -42,6 +44,7 @@
4244
"builtins": "2.0.0",
4345
"husky": "1.3.1",
4446
"lint-staged": "8.1.5",
47+
"np": "4.0.2",
4548
"prettier": "1.17.0",
4649
"rimraf": "2.6.3",
4750
"rollup": "0.67.4",
@@ -50,9 +53,7 @@
5053
"typescript": "3.4.3"
5154
},
5255
"files": [
53-
"dist/index.d.ts",
54-
"dist/index.js",
55-
"dist/index.mjs"
56+
"dist"
5657
],
5758
"lint-staged": {
5859
"*.ts": [

0 commit comments

Comments
 (0)