The machine app's `build` script runs vue-tsc, the Vite build, two electron tsc passes and an esbuild bundle. Serving the kiosk as a plain SPA needs only the middle one, and the electron passes drag in native-addon typings that a web build has no use for. Add `build:web` (just `vite build`) with a turbo task that still builds the workspace packages first via `dependsOn: ["^build"]`, so a consumer can run `pnpm build:web` at the repo root and get `apps/machine/dist`. `env: ["VITE_*"]` is declared on the task because the Vite vars are baked into the bundle at build time — without it turbo would happily serve a cached build produced under different env. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013A6683cCHnQxFUosx1krY4
27 lines
642 B
JSON
27 lines
642 B
JSON
{
|
|
"name": "bitSpire",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Nostr-native Lightning ATM - KYC-free, open-source",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "turbo dev",
|
|
"build": "turbo build",
|
|
"build:web": "turbo build:web",
|
|
"test": "turbo test",
|
|
"lint": "turbo lint",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"typecheck": "turbo typecheck"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"prettier": "^3.4.0",
|
|
"turbo": "^2.3.0",
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"packageManager": "pnpm@9.15.0",
|
|
"engines": {
|
|
"node": ">=22.0.0"
|
|
}
|
|
}
|