Skip to content

Commit abe9d3f

Browse files
authored
chore: Clean up node package scripts (#430)
* "rollup" and "build" are duplicated, so use "rollup" in "build" * Modify the "predeploy" to fit the current process
1 parent a8805f9 commit abe9d3f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,16 @@
2222
"clean-release": "rm -rf ./release; rm -rf ./dist",
2323
"build": "npm run clean-release; rollup -c",
2424
"start": "rollup -c -w",
25-
"reset": "rm -rf ./node_modules; npm install;",
25+
"reset": "rm -rf ./node_modules; npm install",
2626
"prepublishOnly": "npm run build",
27-
"predeploy": "cd example && npm install && npm run build",
27+
"predeploy": "rm -rf ./release; rm -rf ./dist; npm install; npm run build",
2828
"storybook": "start-storybook -p 6006",
2929
"build-storybook": "build-storybook",
30-
"eslint": "eslint --no-eslintrc -c .eslintrc.js 'src/**'",
31-
"stylelint": "stylelint 'src/**'",
3230
"lint": "npm run eslint; npm run eslint-ts",
31+
"eslint": "eslint --no-eslintrc -c .eslintrc.js 'src/**'",
3332
"eslint-ts": "eslint --no-eslintrc -c .eslintrc.json './src/**/*.ts*'",
33+
"stylelint": "stylelint 'src/**'",
3434
"generate-component": "plop",
35-
"rollup": "npm run clean-release; rollup -c",
3635
"deploy-storybook": "storybook-to-ghpages",
3736
"inspect": "npm run test; npm run lint;",
3837
"bundle": "dts-bundle-generator -o ./dist/my.d.ts ./src/index.d.ts"

0 commit comments

Comments
 (0)