The build deletes it. vite clears outDir (emptyOutDir: true), and that file is the only reason //go:embed all:dist compiles in a fresh clone - without it a clone that has not run a frontend build cannot run go build at all. Found because it happened: a pnpm build during the transcode work removed the tracked file, and it showed up as a deletion waiting to be committed. A developer who ran a build and then staged everything would have broken every clone silently, and the symptom would appear on someone else's machine. The build now regenerates it, with the explanation in the file itself so the next person to see it knows what it is for.
25 lines
581 B
JSON
25 lines
581 B
JSON
{
|
|
"name": "vellum-web",
|
|
"private": true,
|
|
"version": "0.4.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build && node scripts/keep-dist.mjs",
|
|
"preview": "vite preview",
|
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
|
},
|
|
"dependencies": {
|
|
"epubjs": "^0.3.93",
|
|
"hls.js": "^1.7.3",
|
|
"pdfjs-dist": "^6.4.299"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
"@types/node": "^26.6.5",
|
|
"svelte": "^5.19.0",
|
|
"svelte-check": "^4.1.4",
|
|
"typescript": "^5.7.3",
|
|
"vite": "^6.0.7"
|
|
}
|
|
}
|