You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a workspace mono repo that contains multiple packages in which typescript has one version (4.5.2). Now I need to add sveltekit, which requires a newer typescript version ( > 4.9.* ) for the correct generated types. It would be quite a big job to upgrade TS for all packages so I was wondering if it would be possible to have the sveltekit package somehow resolve the ts package from the package root.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm working on a workspace mono repo that contains multiple packages in which typescript has one version (4.5.2). Now I need to add sveltekit, which requires a newer typescript version ( > 4.9.* ) for the correct generated types. It would be quite a big job to upgrade TS for all packages so I was wondering if it would be possible to have the sveltekit package somehow resolve the ts package from the package root.
Sveltekit loads TS in this file https://github.com/sveltejs/kit/blob/main/packages/kit/src/core/sync/ts.js and this will always resolve to the TS on the same level which is 4.5.2 and in the root node_modules.
How can I have this resolve to the typescript package in the local node_modules?
Beta Was this translation helpful? Give feedback.
All reactions