|
15 | 15 | ], |
16 | 16 | "type": "module", |
17 | 17 | "scripts": { |
18 | | - "codegenComponent": "CONVEX_AGENT_MODE=anonymous npx convex codegen --component-dir ./src/component", |
19 | 18 | "dev": "run-p -r 'dev:*'", |
20 | 19 | "dev:backend": "convex dev --typecheck-components", |
21 | 20 | "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)", |
24 | 23 | "clean": "rm -rf dist *.tsbuildinfo", |
25 | 24 | "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", |
26 | 27 | "typecheck": "tsc --noEmit && tsc -p example/convex", |
27 | 28 | "lint": "eslint .", |
28 | 29 | "all": "run-p -r 'dev:*' 'test:watch'", |
29 | 30 | "test": "vitest run --typecheck", |
30 | 31 | "test:watch": "vitest --typecheck --clearScreen false", |
31 | 32 | "test:debug": "vitest --inspect-brk --no-file-parallelism", |
32 | 33 | "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", |
37 | 37 | "version": "vim -c 'normal o' -c 'normal o## '$npm_package_version CHANGELOG.md && prettier -w CHANGELOG.md && git add CHANGELOG.md" |
38 | 38 | }, |
39 | 39 | "files": [ |
|
0 commit comments