File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
extensions/ql-vscode/gulpfile.ts Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ export const buildWithoutPackage = series(
3030) ;
3131
3232export const watch = parallel (
33+ // Always build first, so that we don't have to run build manually
34+ compileEsbuild ,
35+ compileViewEsbuild ,
3336 watchEsbuild ,
3437 watchCheckTypeScript ,
3538 watchViewEsbuild ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export function compileEsbuild() {
5656}
5757
5858export function watchEsbuild ( ) {
59- watch ( "src/**/*.ts" , compileEsbuild ) ;
59+ watch ( [ "src/**/*.ts" , "!src/view/**/*.ts" ] , compileEsbuild ) ;
6060}
6161
6262export function checkTypeScript ( ) {
@@ -66,7 +66,7 @@ export function checkTypeScript() {
6666}
6767
6868export function watchCheckTypeScript ( ) {
69- watch ( "src/**/*.ts" , checkTypeScript ) ;
69+ watch ( [ "src/**/*.ts" , "!src/view/**/*.ts" ] , checkTypeScript ) ;
7070}
7171
7272export function copyWasmFiles ( ) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function compileViewEsbuild() {
2626}
2727
2828export function watchViewEsbuild ( ) {
29- watch ( "src/view/**/*.ts" , compileViewEsbuild ) ;
29+ watch ( [ "src/view/**/*.{ts,tsx}" ] , compileViewEsbuild ) ;
3030}
3131
3232export function checkViewTypeScript ( ) {
@@ -36,5 +36,5 @@ export function checkViewTypeScript() {
3636}
3737
3838export function watchViewCheckTypeScript ( ) {
39- watch ( "src/view/**/*.ts" , checkViewTypeScript ) ;
39+ watch ( [ "src/view/**/*.{ts,tsx}" ] , checkViewTypeScript ) ;
4040}
You can’t perform that action at this time.
0 commit comments