|
13 | 13 | "license": "Apache-2.0", |
14 | 14 | "type": "module", |
15 | 15 | "scripts": { |
16 | | - "example": "convex dev --typecheck-components --live-component-sources", |
17 | | - "dev": "run-p -r 'example' 'build:watch'", |
18 | | - "dashboard": "cd example && npx convex dashboard", |
19 | | - "all": "run-p -r 'example' 'build:watch' 'test:watch'", |
20 | | - "setup": "npm i && npm run build && npx convex dev --once", |
21 | | - "build:watch": "cd src && npx chokidar -d 1000 '../tsconfig.json' '**/*.ts' -c 'npm run build' --initial", |
22 | | - "build": "tsc --project ./tsconfig.build.json && npm run copy:dts && echo '{\\n \"type\": \"module\"\\n}' > dist/package.json", |
| 16 | + "dev": "run-p -r 'dev:backend' 'dev:frontend' 'build:watch'", |
| 17 | + "dev:backend": "convex dev --live-component-sources --typecheck-components", |
| 18 | + "dev:frontend": "cd example && vite --clearScreen false", |
| 19 | + "predev": "npm run dev:backend -- --until-success", |
| 20 | + "clean": "rm -rf dist tsconfig.build.tsbuildinfo", |
| 21 | + "build": "tsc --project ./tsconfig.build.json && npm run copy:dts", |
23 | 22 | "copy:dts": "rsync -a --include='*/' --include='*.d.ts' --exclude='*' src/ dist/ || cpy 'src/**/*.d.ts' 'dist/' --parents", |
| 23 | + "build:watch": "npx chokidar 'tsconfig*.json' 'src/**/*.ts' -i '**/*.test.ts' -c 'npm run build' --initial", |
24 | 24 | "typecheck": "tsc --noEmit && tsc -p example/convex", |
25 | | - "clean": "rm -rf dist tsconfig.build.tsbuildinfo", |
26 | | - "alpha": "npm run clean && npm run build && run-p test lint typecheck && npm version prerelease --preid alpha && npm publish --tag alpha && git push --tags", |
27 | | - "release": "npm run clean && npm run build && run-p test lint typecheck && npm version patch && npm publish && git push --tags && git push", |
| 25 | + "lint": "eslint src && eslint example/convex", |
| 26 | + "all": "run-p -r 'dev:backend' 'dev:frontend' 'build:watch' 'test:watch'", |
28 | 27 | "test": "vitest run --typecheck", |
29 | | - "test:watch": "vitest --typecheck", |
| 28 | + "test:watch": "vitest --typecheck --clearScreen false", |
30 | 29 | "test:debug": "vitest --inspect-brk --no-file-parallelism", |
31 | 30 | "test:coverage": "vitest run --coverage --coverage.reporter=text", |
32 | | - "lint": "eslint src && eslint example/convex", |
33 | | - "version": "pbcopy <<<$npm_package_version; vim CHANGELOG.md && git add CHANGELOG.md" |
| 31 | + "attw": "attw $(npm pack -s) --exclude-entrypoints ./convex.config --profile esm-only", |
| 32 | + "prepare": "npm run build", |
| 33 | + "alpha": "npm run clean && npm ci && run-p test lint typecheck attw && npm version prerelease --preid alpha && npm publish --tag alpha && git push --tags", |
| 34 | + "release": "npm run clean && npm ci && run-p test lint typecheck attw && 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" |
34 | 36 | }, |
35 | 37 | "files": [ |
36 | 38 | "dist", |
|
0 commit comments