Skip to content

rename to file, isKit, directory#999

Open
jycouet wants to merge 6 commits intomainfrom
refactor/files-to-file
Open

rename to file, isKit, directory#999
jycouet wants to merge 6 commits intomainfrom
refactor/files-to-file

Conversation

@jycouet
Copy link
Contributor

@jycouet jycouet commented Mar 21, 2026

Singular form — file.viteConfig reads better than files.viteConfig since each property refers to a single file path.

Pure mechanical rename, no logic changes.

Prep for community add-on improvements.


I'm thinking also to switch:

/** If we are in a kit project, this object will contain the lib and routes directories */
kit: { libDirectory: string; routesDirectory: string } | undefined;

to

isKit: boolean
directory: {
  lib: string,
  routes: string
}

So that directory has good default in non-kit as well!

Singular form is more consistent — `file.viteConfig` reads better
than `files.viteConfig` since each property refers to a single file.

Prep for community add-on improvements.
@changeset-bot
Copy link

changeset-bot bot commented Mar 21, 2026

🦋 Changeset detected

Latest commit: 46fc659

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 21, 2026

Open in StackBlitz

npx https://pkg.pr.new/svelte-migrate@999
npx https://pkg.pr.new/sv@999
npx https://pkg.pr.new/@sveltejs/sv-utils@999

commit: 46fc659

@jycouet jycouet mentioned this pull request Mar 21, 2026
12 tasks
@jycouet jycouet changed the title rename workspace files to file rename to file, isKit, directory Mar 21, 2026
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