Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/better-cooks-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: remove check for svelte.config.js before running `sync`
8 changes: 0 additions & 8 deletions packages/kit/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ if (!command) {
}

if (command === 'sync') {
const config_files = ['js', 'ts']
.map((ext) => `svelte.config.${ext}`)
.filter((f) => fs.existsSync(f));
if (config_files.length === 0) {
console.warn(`Missing Svelte config file in ${process.cwd()} — skipping`);
process.exit(0);
}

try {
const config = await load_config();
const sync = await import('./core/sync/sync.js');
Expand Down