fix: TS5011 errors with TypeScript 6.0: transpileModule called with rootDir: undefined#1679
Conversation
|
Thanks - I've authorised the test packs to run. This change should validate if this breaks existing behaviour in ts-loader. If it doesn't, then this may be a very straightforward change to make. Please can you remove the |
|
Because the execution test pack is so old, it isn't compatible with the breaking changes of TypeScript 6. For now I've dropped |
Done. |
|
Ah - your force push has removed some of my changes. Let me reapply them |
|
Before we land this I'd like to get trusted publishing set up: #1680 |
Added a new feature for trusted publishing in version 9.5.5.
|
Theoretically trusted publishing is now set up. I'll try and merge this and do a release later on probably |
|
Attempting to publish with trusted publishing for the first time now: https://github.com/TypeStrong/ts-loader/releases/tag/v9.5.5 |
|
This should have published now with v9.5.7 - gosh trusted publishing is hostile https://github.com/TypeStrong/ts-loader/actions/runs/23890002966/job/69660956084 |
## Summary Updates `ts-loader` to `9.5.7` so ncc's bundled TypeScript loader preserves configured `rootDir` during `transpileModule` builds. This fixes TypeScript 6 `TS5011` failures like: ```text TS5011: The common source directory of 'tsconfig.json' is './actions/javascript/...'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout. ``` `ts-loader` fixed this upstream in TypeStrong/ts-loader#1679. ## Verification - Ran `yarn build`
fix #1678