The signer's tsconfig includes test files, and they import source with an explicit .ts extension (which tsx resolves at runtime). Without this flag tsc exits 2, which fails the blocking typecheck gate in CI. Safe because noEmit is set; the alternative - excluding tests - would leave them unchecked.
19 lines
583 B
JSON
19 lines
583 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2020",
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"noEmit": true,
|
|
"resolveJsonModule": true,
|
|
// Tests import source with an explicit .ts extension (node --import tsx
|
|
// resolves it at runtime). Safe here because noEmit is set, and it lets the
|
|
// tests be typechecked rather than excluded from the gate.
|
|
"allowImportingTsExtensions": true
|
|
},
|
|
"include": ["src/**/*", "test/**/*"]
|
|
}
|