fix: write the generated tsconfig to node_modules/$app/tsconfig.json - #16589
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/44272b1ee5c46cc719a0b31c1894805289b87abeOpen in Note This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed. |
🦋 Changeset detectedLatest commit: 44272b1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
This would introduce a discrepancy between |
|
There shouldn't be a discrepancy since both files are written by Funny enough... they looked at exactly this two weeks ago. 1.62.0 made unresolved extends a hard error, it broke monorepos (microsoft/playwright#41989), and they reverted in microsoft/playwright#42005. So yeah, nothing will happen anytime soon. I don't mind opening the upstream issue regardless. |
|
Ah gotcha — I missed that both generated tsconfigs are affected, I thought we'd be generating this pair: It sounds like they're already aware of the gap with |
Neat little find
The cause of the playwright pin is that its tsconfig loader only ever looks up
node_modules/$app/tsconfig.json, while tsc also resolves the directory form we currently generate. Writing the file where both look removes the pin's cause and letspathsreach Playwright test files again. Verified against 1.61.1, 1.62.0 and 1.62.1.