File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,13 @@ var lockFileName = path.join(cwd, ".bsb.lock");
28
28
process . env . BSB_PROJECT_ROOT = cwd ;
29
29
// console.log('BSB_PROJECT_ROOT:', process.env.BSB_PROJECT_ROOT)
30
30
31
+ // If the project uses gentype and uses custom file extension
32
+ // via generatedFileExtension, ignore them in watch mode
33
+ var genTypeConfig = require ( path . join ( cwd , bsconfig ) ) . gentypeconfig
34
+ if ( genTypeConfig ) {
35
+ var genTypeFileExtension = genTypeConfig . generatedFileExtension
36
+ }
37
+
31
38
// All clients of type MiniWebSocket
32
39
/**
33
40
* @type {any[] }
406
413
fileName . endsWith ( ".mjs" ) ||
407
414
fileName . endsWith ( ".cjs" ) ||
408
415
fileName . endsWith ( ".gen.tsx" ) ||
416
+ fileName . endsWith ( genTypeFileExtension ) ||
409
417
watch_generated . indexOf ( fileName ) >= 0 ||
410
418
fileName . endsWith ( ".swp" )
411
419
) ;
You can’t perform that action at this time.
0 commit comments