mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
0663861471
Adds scripts/build-client.mjs which uses esbuild to compile TypeScript files in src/scripts/client/ into minified IIFE bundles, then writes them as TypeScript string-constant modules in src/scripts/generated/. - Adds build:client npm script; wires it as prebuild and predev hooks - Adds src/scripts/client/tsconfig.json with DOM lib for IDE support - Excludes src/scripts/client/ from the root Worker tsconfig to avoid DOM type conflicts with the Cloudflare Workers runtime types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
542 B
JSON
22 lines
542 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2021",
|
|
"module": "ESNext",
|
|
"moduleResolution": "node",
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"lib": ["ES2021"],
|
|
"types": ["@cloudflare/workers-types"],
|
|
"outDir": "dist",
|
|
"noEmit": true,
|
|
"isolatedModules": true,
|
|
"allowJs": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"skipLibCheck": true,
|
|
"jsx": "react-jsx",
|
|
"jsxImportSource": "hono/jsx"
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist", "src/scripts/client/**/*"]
|
|
}
|