Using @sveltejs/package > 2.3.0 will generate "ts" rather than transpiled outputs, resulting in ts files being pushed to npm. For now it breaks Svelte preview REPL as it can't compile ts on the fly