kit icon indicating copy to clipboard operation
kit copied to clipboard

`svelte-package` without a build step

Open hyunbinseo opened this issue 3 weeks ago • 3 comments

Describe the problem

I have a monorepo in which I have /packages and /sites.

The sites use the local (workspace) packages.

Therefore, I have to build the package every time it is updated:

"build:viewer": "pnpm --dir ../../packages/viewer package",

Describe the proposed solution

Would it be possible to have a no-build configuration?

I would love to import files directly from the lib directory:

- /packages/viewer/dist
+ /packages/viewer/src/lib

If the consumer has a TypeScript supported environment, they could use the .ts files without transpiling it.

Alternatives considered

If no build step can be achieved without svelte-package, the CLI could provide this as a separate template. (which is probably needed due to the changes in the package.json file)

Importance

nice to have

Additional Information

Marked as off-topic here: https://github.com/sveltejs/cli/issues/783#issuecomment-3561438532

hyunbinseo avatar Nov 21 '25 07:11 hyunbinseo