The precache list is generated from Bun.build's outputs, so hashed asset names cannot drift. A waiting worker prompts to reload rather than pinning the user to a stale build. Two fixes beyond the brief: naming.entry changed from "[dir]/[name].[ext]" to "[name].[ext]" because [dir] resolved to "src", putting index.html at dist/src/index.html instead of the dist root; and external: ["*.webmanifest", "*.svg"] was added because Bun's HTML bundler otherwise tries to resolve <link> hrefs as module imports, which fails outright for the not-yet-generated manifest.webmanifest and would hash icon.svg, breaking the fixed paths the manifest and service worker depend on. happy-dom is registered per-file in src/ui/registerSw.test.ts only, not as a global test preload, so src/domain/smoke.test.ts still guards the domain layer's DOM-free invariant. PNG icons (192px/512px) are not included — binary image generation isn't available here; a human needs to add them for full Chrome installability. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
35 lines
886 B
JSON
35 lines
886 B
JSON
{
|
|
"name": "bun-react-template",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun --hot src/index.ts",
|
|
"start": "NODE_ENV=production bun src/index.ts",
|
|
"build": "bun run build.ts"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-label": "^2.1.7",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-slot": "^1.2.3",
|
|
"bun-plugin-tailwind": "^0.1.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"fflate": "^0.8.3",
|
|
"lucide-react": "^1",
|
|
"radix-ui": "^1.6.7",
|
|
"react": "^19",
|
|
"react-dom": "^19",
|
|
"react-router": "^8.3.1",
|
|
"tailwind-merge": "^3.3.1",
|
|
"tw-animate-css": "^1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@happy-dom/global-registrator": "^20.12.0",
|
|
"@types/bun": "latest",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"tailwindcss": "^4.1.11"
|
|
}
|
|
}
|