Skip to content

chore(cli): sv.removeFile - #1238

Open
manuel3108 wants to merge 3 commits into
version-1from
chore/sv-remove-file
Open

chore(cli): sv.removeFile#1238
manuel3108 wants to merge 3 commits into
version-1from
chore/sv-remove-file

Conversation

@manuel3108

Copy link
Copy Markdown
Member

if a migrations want's to delete a file currently it is required to use fs.unlinkSync. This is bad, since the files filter for the migration does not apply. Therefore we now provide a wrapper in sv.removeFile and migrate existing migrations to use this wrapper.

Description

Checklist

  • Update snapshots (if applicable)
  • Add a changeset (if applicable)
  • Allow maintainers to edit this PR
  • I care about what I'm doing, no matter the tool I use (Notepad, Sublime, VSCode, AI...)

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 8, 2026

Copy link
Copy Markdown

Install the latest version of sv from f826d2f:

pnpm add https://pkg.svelte.dev/sv/c/f826d2fd59c6b2c1cab69726d0481f5b769ae93f

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/cli/pr/1238

@changeset-bot

changeset-bot Bot commented Aug 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f826d2f

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

This PR includes changesets to release 1 package
Name Type
sv 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

@svelte-docs-bot

Copy link
Copy Markdown

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.

1 participant