Files
iam-js-sdk/tsconfig.esm.json
zeekayandHanzo Dev 080fb1c97a Typecheck on the native compiler, keep 6 for the tools
typescript 7.0.2 is the native compiler and exports no JavaScript API, so
ts-jest cannot read it. It comes in aliased as tsgo and does the typechecking;
typescript moves to the 6 line for the tools that call into it.

The old 4.5.5 pin did not understand the node16 module and moduleResolution the
tsconfig already asked for, so both builds started with config errors: 2
diagnostics on the cjs project and 19 on the esm one. Now 0 on both, under
either compiler. moduleResolution moved next to the module it has to match
(node16 for cjs, bundler for the ESNext esm build), rootDir is explicit as TS6
requires for emit, and node and jest types are named instead of picked up by
ambient scanning, which stopped finding them. Dual cjs/esm output and the jest
suite are unchanged.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-16 22:51:32 -07:00

10 lines
165 B
JSON

{
"extends": "./tsconfig",
"compilerOptions": {
"target": "ES2017",
"module": "ESNext",
"moduleResolution": "bundler",
"outDir": "lib/esm"
}
}