Skip to content

Commit 28500c7

Browse files
fix: cleanup builder directories (#319)
* fix: add sveltekit server routes to builder * fix: remove root workflow dir check * fix missing root level workflow route * Fix: The constructor now hardcodes `dirs: ['src/routes', 'src/lib']` which silently ignores any user\-provided `dirs` option passed to the plugin\, breaking the documented API and removing support for custom workflow directories\. * Fix: The test expectations don\'t match the new implementation of `getWorkflowDirs()`\. The mock provides `scanDirs` which the new code no longer uses\, and the new implementation adds scanning of `routesDir` and `apiDir` instead\. * fix(nitro): use src dir --------- Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com> Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
1 parent 68f4e78 commit 28500c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/sveltekit/src/builder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ export const OPTIONS = createSvelteKitHandler('OPTIONS');`,
228228
}
229229
}
230230
}
231+
<<<<<<< HEAD
231232

232233
/**
233234
* Gets the list of directories to scan for workflow files.
@@ -249,3 +250,5 @@ export function getWorkflowDirs(options?: { dirs?: string[] }): string[] {
249250
function unique<T>(array: T[]): T[] {
250251
return Array.from(new Set(array));
251252
}
253+
=======
254+
>>>>>>> e28cfa93 (fix: cleanup builder directories (#319))

0 commit comments

Comments
 (0)