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