Skip to content

Commit ef28154

Browse files
committed
Improve ESBuild globs
1 parent 47cabbb commit ef28154

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

extensions/ql-vscode/gulpfile.ts/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export const buildWithoutPackage = series(
3030
);
3131

3232
export 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,

extensions/ql-vscode/gulpfile.ts/typescript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function compileEsbuild() {
5656
}
5757

5858
export function watchEsbuild() {
59-
watch("src/**/*.ts", compileEsbuild);
59+
watch(["src/**/*.ts", "!src/view/**/*.ts"], compileEsbuild);
6060
}
6161

6262
export function checkTypeScript() {
@@ -66,7 +66,7 @@ export function checkTypeScript() {
6666
}
6767

6868
export function watchCheckTypeScript() {
69-
watch("src/**/*.ts", checkTypeScript);
69+
watch(["src/**/*.ts", "!src/view/**/*.ts"], checkTypeScript);
7070
}
7171

7272
export function copyWasmFiles() {

extensions/ql-vscode/gulpfile.ts/view.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function compileViewEsbuild() {
2626
}
2727

2828
export function watchViewEsbuild() {
29-
watch("src/view/**/*.ts", compileViewEsbuild);
29+
watch(["src/view/**/*.{ts,tsx}"], compileViewEsbuild);
3030
}
3131

3232
export function checkViewTypeScript() {
@@ -36,5 +36,5 @@ export function checkViewTypeScript() {
3636
}
3737

3838
export function watchViewCheckTypeScript() {
39-
watch("src/view/**/*.ts", checkViewTypeScript);
39+
watch(["src/view/**/*.{ts,tsx}"], checkViewTypeScript);
4040
}

0 commit comments

Comments
 (0)