File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -255,14 +255,18 @@ function triggerIncrementalCompilationOfFile(
255
255
return ;
256
256
}
257
257
258
- const projectRewatchLockfile = path . resolve (
259
- projectRootPath ,
260
- c . rewatchLockPartialPath ,
261
- ) ;
258
+ const projectRewatchLockfiles = [
259
+ path . resolve ( projectRootPath , c . rewatchLockPartialPath ) ,
260
+ path . resolve ( projectRootPath , c . rescriptLockPartialPath ) ,
261
+ ] ;
262
262
263
263
let foundRewatchLockfileInProjectRoot = false ;
264
- if ( fs . existsSync ( projectRewatchLockfile ) ) {
264
+ if ( projectRewatchLockfiles . some ( ( lockFile ) => fs . existsSync ( lockFile ) ) ) {
265
265
foundRewatchLockfileInProjectRoot = true ;
266
+ } else if ( debug ( ) ) {
267
+ console . log (
268
+ `Did not find ${ projectRewatchLockfiles . join ( " or " ) } in project root, assuming bsb` ,
269
+ ) ;
266
270
}
267
271
268
272
// if we find a rewatch.lock in the project root, it's a compilation of a local package
You can’t perform that action at this time.
0 commit comments