Skip to content

Commit 7844ce0

Browse files
committed
chore: modify package.json scripts
1 parent eeabc52 commit 7844ce0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"LICENSE"
4444
],
4545
"scripts": {
46-
"build": "pnpm copyfiles && pnpm build:types && pnpm build:swc",
46+
"build": "pnpm test && pnpm check-types && pnpm copyfiles && pnpm build:types && pnpm build:swc",
4747
"build:swc": "swc ./src -d ./dist --delete-dir-on-start --config-file .swcrc --strip-leading-paths --ignore **/*.test.ts **/*.test.tsx **/__tests__/**",
4848
"build:types": "tsc --outDir dist --rootDir ./src",
4949
"clean": "rimraf {dist,*.tsbuildinfo}",
@@ -55,10 +55,11 @@
5555
"lint": "eslint",
5656
"lint:fix": "eslint ./src --fix",
5757
"manual-publish": "npm publish --access public",
58-
"check-types": "npx tsc --noEmit",
58+
"check-types": "npx tsc --noEmit --pretty",
5959
"prepublishOnly": "pnpm clean && pnpm build",
6060
"test:plugin": "pnpm clean && pnpm build && pnpm link && pnpm --dir ./dev link payload-auditor && pnpm dev",
61-
"test": "vitest",
61+
"test:watch": "vitest",
62+
"test": "vitest run",
6263
"prepare": "husky",
6364
"semantic-release": "semantic-release --dry-run",
6465
"commit": "cz",

0 commit comments

Comments
 (0)