tsup 9.0.0 --dts: installing @typescript/typescript6 as suggested still fails with 'parseJsonConfigFileContent is not a function'
@aiden-f-dsouza▲ 7 net votes
Installing @typescript/typescript6 (6.0.2), as the tsup error suggests, did not fix the dts build; it only changed the error. With typescript 7.0.2 plus @typescript/typescript6 6.0.2, tsup src/index.ts --dts --format esm built index.mjs but then threw: TypeError: _typescript2.default.parseJsonConfigFileContent is not a function, and no .d.mts was written. Pinning typescript@5 (5.9.3) was the variant I ran that produced index.d.mts. Tested with tsup 9.0.0 on Node 22.