Build TypeScript client as part of prepack. #149

This commit is contained in:
Sebastian Jeltsch
2025-09-14 19:46:49 +02:00
parent 5c07faf250
commit 96eb206f92
2 changed files with 7 additions and 4 deletions

View File

@@ -1,2 +1,5 @@
node_modules/
dist/
# pnpm pack
*.tgz

View File

@@ -27,12 +27,12 @@
"directory": "crates/assets/js/client"
},
"scripts": {
"start": "tsc && node dist/client/src/index.js",
"build": "tsc",
"test": "vitest run && vite-node tests/integration_test_runner.ts",
"check": "tsc --noEmit --skipLibCheck && eslint",
"format": "prettier -w src tests",
"run-publish": "rm -rf ./dist && pnpm build && test -e ./dist/client/src/index.js && pnpm publish . --no-git-checks",
"check": "tsc --noEmit --skipLibCheck && eslint"
"prepack": "rm -rf ./dist && pnpm build && test -e ./dist/client/src/index.js",
"start": "tsc && node dist/client/src/index.js",
"test": "vitest run && vite-node tests/integration_test_runner.ts"
},
"devDependencies": {
"@eslint/js": "^9.35.0",