Skip to content

Commit 222b696

Browse files
committed
chore: update npm script build and add preversion checks
1 parent b230a9d commit 222b696

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"README.md"
3131
],
3232
"scripts": {
33-
"build": "npm run build-cjs && npm run build-esm",
33+
"build": "npm run clean && npm run build-cjs && npm run build-esm",
3434
"build-cjs": "tsc -p tsconfig.cjs.json",
3535
"build-esm": "tsc",
3636
"clean": "rimraf ./cjs ./esm",
@@ -41,7 +41,8 @@
4141
"lint-fix": "eslint --config eslint.config.mjs --fix .",
4242
"prepare": "npm run clean && npm run build",
4343
"prepublishOnly": "npm run lint && npm test",
44-
"test": "vitest run --passWithNoTests --coverage"
44+
"test": "vitest run --passWithNoTests --coverage",
45+
"preversion": "npm run lint && npm run test"
4546
},
4647
"devDependencies": {
4748
"@babel/cli": "^7.28.3",

0 commit comments

Comments
 (0)