I have an npm package, written in typescript, that also exports some svelte components, obviously svelte-kit will need the component src, and not a compiled component, I have explicitly added the location of this package to the svelte-kit tsconfig.json but I'm still hitting Cannot use import outside a module:.... import App from "./components/App.svelte"; (the import App... is a line of code within the the module src)
Can anybody advise what I need to do / setup in the npm package.json / build / typescript, and on the svelte-kit app that wants to consume this package?
The way I see it, I want this npm package to be consumed entirely from its typescript src, and get compiled / bundled with the rest of the app but not sure if that is possible.