Cotton code
32 lines · 1.1 KB · JSONRaw
{  "compilerOptions": {    "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.worker.tsbuildinfo",    "target": "ES2023",    "lib": ["ES2023"],    "module": "ESNext",    "types": ["@cloudflare/workers-types"],    "skipLibCheck": true,    /* Bundler mode (wrangler bundles the worker with esbuild) */    "moduleResolution": "bundler",    "allowImportingTsExtensions": true,    "verbatimModuleSyntax": true,    "moduleDetection": "force",    "noEmit": true,    /* Linting */    "strict": true,    "noUnusedLocals": true,    "noUnusedParameters": true,    "erasableSyntaxOnly": true,    "noFallthroughCasesInSwitch": true,    "noUncheckedSideEffectImports": true  },  "include": ["src/worker", "src/shared"],  // The shared SOURCE is worker code; the shared TESTS are not. They run under  // Vite, and this  // project deliberately declares only `@cloudflare/workers-types` — no DOM, no  // node — so that a `process.env` or a `document` in worker code is a type  // error rather than a runtime surprise. tsconfig.app.json typechecks them.  "exclude": ["src/shared/__tests__"]}