Skip to content

Commit 86823cc

Browse files
committed
chore: add prepublish scripts
1 parent 8617dff commit 86823cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616
"format:fix:lint": "cross-env-shell eslint --fix $npm_package_config_eslint",
1717
"format:check-fix:prettier": "run-e format:check:prettier format:fix:prettier",
1818
"format:check:prettier": "cross-env-shell prettier --check $npm_package_config_prettier",
19-
"format:fix:prettier": "cross-env-shell prettier --write $npm_package_config_prettier"
19+
"format:fix:prettier": "cross-env-shell prettier --write $npm_package_config_prettier",
20+
"prepublishOnly": "run-s prepublishOnly:*",
21+
"prepublishOnly:checkout": "git checkout main",
22+
"prepublishOnly:pull": "git pull",
23+
"prepublishOnly:install": "npm ci",
24+
"prepublishOnly:test": "npm test"
2025
},
2126
"repository": {
2227
"type": "git",

0 commit comments

Comments
 (0)