{ // THE ROOT `scripts/` TREE, TYPECHECKED — the one lane `turbo typecheck` // structurally cannot reach. // // `scripts/` is under no workspace package, so `turbo typecheck` (which runs // each package's own script) never sees it, and neither does `turbo test` // (`pnpm test:scripts` exists for exactly that reason). Until this file, a // type error in a root script or its test was invisible on CI and surfaced // only if somebody happened to run a bare `tsc` — one had been sitting in // the memory-reconcile test since the v34 schema change // made `project` required on a memory add. // // WHY NOT THE ROOT `tsconfig.json`. That one is what an editor picks up at // the repo root, and with no `include` it sweeps the WHOLE tree — including // `apps/cotton-site`, whose sources are written for its own bundler config // (`allowImportingTsExtensions`, its `@/` paths) and report dozens of errors // under the root's settings. A gate that is red for reasons it is not about // is a gate nobody reads, so this one states its scope. // // Run by `pnpm typecheck:scripts`, and as a step of `verify-main.yml`'s // `checks` job on the same `source` gate the tests use."extends": "./tsconfig.base.json","compilerOptions": { // The scripts are Node programs run through `tsx`, not bundled: `bundler` // resolution would accept import shapes Node then refuses at run time."moduleResolution": "bundler","types": ["node"],"noEmit": true },"include": ["scripts/**/*.ts", "scripts/**/*.mts", "vitest.scripts.config.ts", "vitest.workers.ts", "vitest.testfiles.ts", "vitest.git-env.ts", "vitest.tmpdir.ts"],"exclude": ["node_modules", "**/node_modules"]}