Skip to content

Commit 30e1d50

Browse files
committed
improve npm-scripts
1 parent 6a4d7b4 commit 30e1d50

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@
1717
"access": "public"
1818
},
1919
"scripts": {
20-
"build": "npm run clean && rollup -c",
2120
"clean": "rimraf dist",
21+
"build": "npm run clean && rollup -c",
2222
"lint": "eslint '**/*.{js,ts,tsx}'",
2323
"lint:fix": "npm run lint -- --fix",
2424
"lint:types": "tsc --noEmit",
25-
"test": "jest",
25+
"test": "jest --runInBand",
2626
"test:watch": "jest --watch",
27-
"test:coverage": "jest --coverage"
27+
"test:coverage": "jest --coverage",
28+
"postversion": "git push && git push origin v$npm_package_version",
29+
"prepublishOnly": "npm run lint && npm run lint:types && npm test && npm run build"
2830
},
2931
"keywords": [
3032
"react",

0 commit comments

Comments
 (0)