Skip to content

Commit 9b12f26

Browse files
committed
Merge branch 'update-package-scripts' into ian/batch-writes
2 parents 462c727 + 4829424 commit 9b12f26

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,23 @@
1818
"dev": "run-p -r 'dev:*'",
1919
"dev:backend": "convex dev --typecheck-components",
2020
"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",
2222
"predev": "path-exists .env.local || (npm run build && npx convex dev --once)",
23-
"clean": "rm -rf dist *.tsbuildinfo",
2423
"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",
2526
"typecheck": "tsc --noEmit && tsc -p example && tsc -p example/convex",
2627
"lint": "eslint .",
2728
"all": "run-p -r 'dev:*' 'test:watch'",
2829
"test": "vitest run --typecheck",
2930
"test:watch": "vitest --typecheck --clearScreen false",
3031
"test:debug": "vitest --inspect-brk --no-file-parallelism",
3132
"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"
3638
},
3739
"files": [
3840
"dist",

0 commit comments

Comments
 (0)