File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/create-svelte/test Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ const overrides = { ...existing_workspace_overrides };
21
21
await glob ( fileURLToPath ( new URL ( '../../../packages' , import . meta. url ) ) + '/*/package.json' )
22
22
) . forEach ( ( pkgPath ) => {
23
23
const name = JSON . parse ( fs . readFileSync ( pkgPath , 'utf-8' ) ) . name ;
24
- // use `file:` protocol for opting into stricter resolve logic which catches more bugs
25
- overrides [ name ] = `file:${ path . dirname ( path . resolve ( pkgPath ) ) } ` ;
24
+ // use `file:` protocol for opting into stricter resolve logic which catches more bugs,
25
+ // but only on CI because it doesn't work locally for some reason
26
+ const protocol = process . env . CI ? 'file:' : '' ;
27
+ overrides [ name ] = `${ protocol } ${ path . dirname ( path . resolve ( pkgPath ) ) } ` ;
26
28
} ) ;
27
29
28
30
try {
You can’t perform that action at this time.
0 commit comments