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