|
20 | 20 | "dev": "run-p -r 'dev:*'", |
21 | 21 | "dev:backend": "convex dev --typecheck-components --run example:seedData", |
22 | 22 | "dev:frontend": "cd example && vite --clearScreen false", |
23 | | - "dev:build": "chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'convex codegen --component-dir ./src/component && npm run build' --initial", |
24 | | - "predev": "path-exists .env.local || (convex dev --skip-push && npm run build)", |
25 | | - "clean": "rm -rf dist *.tsbuildinfo", |
| 23 | + "dev:build": "chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'npm run build:codegen' --initial", |
| 24 | + "predev": "path-exists .env.local dist || (npm run build && convex dev --once)", |
26 | 25 | "build": "tsc --project ./tsconfig.build.json && ./scripts/replace-version.sh .", |
| 26 | + "build:codegen": "npx convex codegen --component-dir ./src/component && npm run build", |
| 27 | + "build:clean": "rm -rf dist *.tsbuildinfo && npm run build:codegen", |
27 | 28 | "typecheck": "tsc --noEmit && tsc -p example && tsc -p example/convex", |
28 | 29 | "lint": "eslint .", |
29 | 30 | "all": "run-p -r 'dev:*' 'test:watch'", |
30 | 31 | "test": "vitest run --typecheck", |
31 | 32 | "test:watch": "vitest --typecheck --clearScreen false", |
32 | 33 | "test:debug": "vitest --inspect-brk --no-file-parallelism", |
33 | 34 | "test:coverage": "vitest run --coverage --coverage.reporter=text", |
34 | | - "prepublishOnly": "npm run clean && npm run build", |
35 | | - "preversion": "npm run clean && npm ci && npm run build && run-p test lint typecheck", |
| 35 | + "preversion": "npm ci && npm run build:clean && run-p test lint typecheck", |
| 36 | + "prepublishOnly": "npm whoami || npm login", |
36 | 37 | "alpha": "npm version prerelease --preid alpha && npm publish --tag alpha && git push --follow-tags", |
37 | 38 | "release": "npm version patch && npm publish && git push --follow-tags && git push", |
38 | 39 | "version": "vim -c 'normal o' -c 'normal o## '$npm_package_version CHANGELOG.md && prettier -w CHANGELOG.md && git add CHANGELOG.md" |
|
0 commit comments