Files
Spoolman/client_v2/package.json
Donkie aad337234e Compile paraglide before type-checking client_v2
The type check assumed $lib/paraglide existed, but it's gitignored
output of the paraglide vite plugin, so it only appears once something
runs vite. svelte-check doesn't, which left the job resolving ~40
imports of $lib/paraglide/{messages,runtime} against nothing on any
fresh checkout -- CI every time, and a new clone locally. It went
unnoticed because the job had been dying at exit 127 before it could
get far enough to report, and because a working tree that has ever run
dev or build has the directory sitting there.

The compiler ships a CLI, so this costs a compile rather than a full
vite build. Its flags live in a package.json script that `check` and
the hook both call, leaving one copy to keep in sync with the plugin
options in vite.config.ts.

Claude-Session: https://claude.ai/code/session_01UB5KocsTBm9GL5x3Uuup5F
2026-07-30 21:34:26 +02:00

59 lines
1.8 KiB
JSON

{
"name": "spoolman-client-v2",
"private": true,
"version": "0.25.0",
"type": "module",
"scripts": {
"strip-empty-locales": "node scripts/strip-empty-locales.mjs",
"predev": "node scripts/strip-empty-locales.mjs",
"dev": "vite dev",
"prebuild": "node scripts/strip-empty-locales.mjs",
"build": "vite build",
"preview": "vite preview",
"test": "vitest run",
"test:watch": "vitest",
"paraglide": "paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide --strategy localStorage preferredLanguage baseLocale",
"check": "npm run paraglide && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "npm run paraglide && svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"lint:eslint": "eslint .",
"audit:a11y": "playwright test",
"audit:a11y:report": "playwright show-report"
},
"devDependencies": {
"@axe-core/playwright": "^4.12.1",
"@eslint/js": "^9.39.5",
"@inlang/paraglide-js": "^2.18.2",
"@playwright/test": "^1.62.0",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.8.1",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@types/qrcode": "^1.5.6",
"eslint": "^9.39.5",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.22.0",
"globals": "^16.5.0",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"svelte": "^5.1.9",
"svelte-check": "^4.0.5",
"typescript": "^5.6.3",
"typescript-eslint": "^8.65.0",
"vite": "^5.4.10",
"vitest": "^2.1.9"
},
"dependencies": {
"@lucide/svelte": "^1.25.0",
"fflate": "^0.8.3",
"konva": "^10.3.0",
"qr-scanner": "^1.4.2",
"qrcode": "^1.5.4",
"svelte-dnd-action": "^0.9.74",
"svelte-konva": "^1.0.1"
},
"allowScripts": {
"esbuild@0.21.5": true
}
}