Skip to content

Commit dcd6cdc

Browse files
authored
fix(build): Add prepublish script to generate build on CI
Fixes #10
1 parent 3514e45 commit dcd6cdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"main": "dist/index.js",
66
"scripts": {
77
"clean": "rimraf ./dist",
8-
"build": "npm run clean && webpack",
9-
"prerelease": "npm run lint && npm run build",
10-
"release": "npmpub",
8+
"prebuild": "npm run lint",
9+
"build": "NODE_ENV=production npm run clean && webpack",
10+
"prepublish": "npm run build",
1111
"lint": "eslint .",
1212
"lint:fix": "npm run lint -- --fix",
1313
"lint:staged": "lint-staged",

0 commit comments

Comments
 (0)