Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch mode for package command #2333

Closed
dummdidumm opened this issue Aug 31, 2021 · 1 comment · Fixed by #4658
Closed

Watch mode for package command #2333

dummdidumm opened this issue Aug 31, 2021 · 1 comment · Fixed by #4658
Labels
feature / enhancement New feature or request p3-edge-case SvelteKit cannot be used in an uncommon way pkg:svelte-package Issues related to svelte-package

Comments

@dummdidumm
Copy link
Member

Describe the problem

Some people use SvelteKit to create a package but use/test this package in a different environment than the routes folder in the same project. For them to get updates, they have to run the package command over and over again or write a custom script for that, which might not work for windows users. Details: sveltejs/component-template#29 (comment)

Describe the proposed solution

Add a --watch option to the package command which rebuilds the package without deleting its top level folder

Alternatives considered

Don't add it, but at least don't delete the top level folder (only empty its content) so that the changes are properly picked up by watchers.

Importance

nice to have

Additional Information

No response

@dummdidumm dummdidumm added p3-edge-case SvelteKit cannot be used in an uncommon way pkg:svelte-package Issues related to svelte-package feature / enhancement New feature or request labels Aug 31, 2021
Rich-Harris added a commit that referenced this issue Apr 20, 2022
Rich-Harris added a commit that referenced this issue Apr 20, 2022
@mechadragon01
Copy link

I have tried using the svelte-package --watch command and it works to detect changes.

  • Successfully get dist directory from my file changes in src/lib.

But it crashes on any changes with syntax issues which renders it kind of useless for dev purposes. Can the --watch flag be more robust in the sense it doesn't crash on any non-perfect change or you don't need to fix the syntax immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature / enhancement New feature or request p3-edge-case SvelteKit cannot be used in an uncommon way pkg:svelte-package Issues related to svelte-package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants