Skip to content

add --watch flag to svelte-kit package - #4658

Merged
Rich-Harris merged 41 commits into
masterfrom
gh-2333
Apr 21, 2022
Merged

Rich-Harris merged 41 commits into
masterfrom
gh-2333

Conversation

@Rich-Harris

Copy link
Copy Markdown
Member

Closes #2333. Undertook a bit of refactoring while I was at it, both to make incremental changes possible (side note: would be nice if emit_dts could be made to work incrementally in future) and also just as a general tidy-up.

Also, it seems it was failing to build packages with jsconfig.json instead of tsconfig.json. Fixed that in this PR.

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpx changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

@changeset-bot

changeset-bot Bot commented Apr 19, 2022 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d9ed983

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ignatiusmb ignatiusmb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of cleanup and we should be good

Comment thread packages/kit/src/packaging/index.js Resolved
@Rich-Harris
Rich-Harris merged commit 15516b4 into master Apr 21, 2022
@Rich-Harris
Rich-Harris deleted the gh-2333 branch April 21, 2022 21:02
teemingc added a commit that referenced this pull request Nov 13, 2026
…watch mode (#17519)

- Watch creation uses normalized `file.dest`, but deletion used source
`file.name`, leaving compiled JavaScript and custom-extension Svelte
outputs behind.
- Reuse the writer’s output mapping rather than special-casing
TypeScript; retain incremental cleanup introduced in
[#4658](#4658) and preserved through
[#8922](#8922).
- Keep chokidar rename handling
([#16641](#16641)) and unrelated
output preservation
([#13055](#13055)) instead of
rebuilding or wiping output on deletion.
- Cover TypeScript/declaration removal, custom-extension directory
renames, and empty-directory cleanup.

Fixes #17518

<!--
svelte-triage-bot:feedback-baseline:26cc741518be003772b96099701173a8f5534c95
-->

---------

Co-authored-by: svelte-triage-bot <[email protected]>
Co-authored-by: Tee Ming <[email protected]>

This branch was successfully deployed

2 active deployments
Preview – kit-svelte-dev — d9ed9835 Deployed Apr 21, 2022 by vercel[bot]
Preview – kit — d9ed9835 Deployed Apr 21, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Watch mode for package command

2 participants