mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-08-05 09:04:16 +00:00
build: add client-side TypeScript compilation pipeline
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 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
671179acc7
commit
0663861471
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2021", "DOM"],
|
||||
"types": [],
|
||||
"noEmit": true
|
||||
},
|
||||
"include": ["./**/*"],
|
||||
"exclude": []
|
||||
}
|
||||
Reference in New Issue
Block a user