Skip to content

Commit f504442

Browse files
committed
refactor npm scripts; run test/build on publish
1 parent 9b93f9a commit f504442

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"main": "./dist/index.cjs.js",
77
"module": "./dist/index.mjs",
88
"scripts": {
9-
"pre_build": "rimraf dist",
10-
"_build": "rollup -c",
11-
"build": "cross-env NODE_ENV=production npm run _build",
9+
"prebuild": "rimraf dist",
10+
"build": "rollup -c",
1211
"coveralls": "nyc report --reporter=text-lcov | coveralls",
13-
"precoverage": "rimraf coverage",
1412
"lint": "eslint src",
15-
"start": "npm run _build -- -w",
13+
"prepublishOnly": "npm test && cross-env NODE_ENV=production npm run build",
14+
"start": "cross-env NODE_ENV=development npm run build -- -w",
15+
"pretest": "rimraf coverage",
1616
"test": "nyc --reporter=text --reporter=html mocha"
1717
},
1818
"author": "Tyler Waters <tyler.waters@gmail.com>",

0 commit comments

Comments
 (0)