Skip to content

Commit 57f5b1a

Browse files
committed
update scripts
1 parent 9c380e6 commit 57f5b1a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@
1515
],
1616
"type": "module",
1717
"scripts": {
18-
"codegenComponent": "CONVEX_AGENT_MODE=anonymous npx convex codegen --component-dir ./src/component",
1918
"dev": "run-p -r 'dev:*'",
2019
"dev:backend": "convex dev --typecheck-components",
2120
"dev:frontend": "cd example && vite --clearScreen false",
22-
"dev:build": "chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'convex codegen --component-dir ./src/component && npm run build' --initial",
23-
"predev": "path-exists .env.local || (npm run build && convex dev --once)",
21+
"dev:build": "chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'npm run build:codegen' --initial",
22+
"predev": "path-exists .env.local dist || (npm run build && convex dev --until-success)",
2423
"clean": "rm -rf dist *.tsbuildinfo",
2524
"build": "tsc --project ./tsconfig.build.json",
25+
"build:codegen": "npx convex codegen --component-dir ./src/component && npm run build",
26+
"build:clean": "rm -rf dist *.tsbuildinfo && npm run build:codegen",
2627
"typecheck": "tsc --noEmit && tsc -p example/convex",
2728
"lint": "eslint .",
2829
"all": "run-p -r 'dev:*' 'test:watch'",
2930
"test": "vitest run --typecheck",
3031
"test:watch": "vitest --typecheck --clearScreen false",
3132
"test:debug": "vitest --inspect-brk --no-file-parallelism",
3233
"test:coverage": "vitest run --coverage --coverage.reporter=text",
33-
"prepublishOnly": "npm run clean && npm run build",
34-
"preversion": "npm run clean && npm ci && npm run build && run-p test lint typecheck",
35-
"alpha": "npm version prerelease --preid alpha && npm publish --tag alpha && git push --tags",
36-
"release": "npm version patch && npm publish && git push --tags && git push",
34+
"preversion": "npm ci && npm run build:clean && run-p test lint typecheck",
35+
"alpha": "npm version prerelease --preid alpha && npm publish --tag alpha && git push --follow-tags",
36+
"release": "npm version patch && npm publish && git push --follow-tags",
3737
"version": "vim -c 'normal o' -c 'normal o## '$npm_package_version CHANGELOG.md && prettier -w CHANGELOG.md && git add CHANGELOG.md"
3838
},
3939
"files": [

0 commit comments

Comments
 (0)