File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed
packages/kit/src/core/sync/create_manifest_data Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @sveltejs/kit ' : patch
3
+ ---
4
+
5
+ chore: allow remote functions in all of the src directory
Original file line number Diff line number Diff line change @@ -481,18 +481,14 @@ function create_remotes(config, cwd) {
481
481
const remotes = [ ] ;
482
482
483
483
// TODO could files live in other directories, including node_modules?
484
- for ( const dir of [ config . kit . files . lib , config . kit . files . routes ] ) {
485
- if ( ! fs . existsSync ( dir ) ) continue ;
484
+ for ( const file of walk ( config . kit . files . src ) ) {
485
+ if ( extensions . some ( ( ext ) => file . endsWith ( ext ) ) ) {
486
+ const posixified = posixify ( path . relative ( cwd , `${ config . kit . files . src } /${ file } ` ) ) ;
486
487
487
- for ( const file of walk ( dir ) ) {
488
- if ( extensions . some ( ( ext ) => file . endsWith ( ext ) ) ) {
489
- const posixified = posixify ( path . relative ( cwd , `${ dir } /${ file } ` ) ) ;
490
-
491
- remotes . push ( {
492
- hash : hash ( posixified ) ,
493
- file : posixified
494
- } ) ;
495
- }
488
+ remotes . push ( {
489
+ hash : hash ( posixified ) ,
490
+ file : posixified
491
+ } ) ;
496
492
}
497
493
}
498
494
You can’t perform that action at this time.
0 commit comments