Fork Horse repository, listed by its owner. Publisher snapshot.

scripts/tsconfig.json

Snapshot at 34e3175

Containing directory

1,139 bytes · jsonView raw
1// Type-checks `scripts/` -- the deploy tooling, which no package tsconfig includes. Nothing here is
2// compiled: `pnpm check` and `pnpm deploy` run these modules directly under `node`, which strips the
3// types. `erasableSyntaxOnly` is what keeps that a guarantee rather than a hope.
4//
5// Checked by `pnpm types:scripts`, which `pnpm lint` runs. Deliberately not part of `pnpm build`:
6// the packages' own type-checking is what that covers.
7{
8  "extends": "../tsconfig.json",
9  "compilerOptions": {
10    // Node resolves these specifiers for real, unlike the packages' bundled "bundler" mode, so
11    // imports name the file on disk (`./deployment-config.ts`) and need the extension allowed. The
12    // type-only imports from `../cloudflare-os/scripts/` rely on this too.
13    "module": "nodenext",
14    "moduleResolution": "nodenext",
15    "allowImportingTsExtensions": true,
16    "types": ["node"],
17    "erasableSyntaxOnly": true,
18    "verbatimModuleSyntax": true,
19    // The root sets allowJs; nothing under scripts/ is JS, and checking the submodule's is not this
20    // config's job.
21    "checkJs": false
22  },
23  "include": ["**/*.ts"]
24}
25