Skip to content

Commit edddfcb

Browse files
committedSep 25, 2021
fix(tsbb): Fix fitering tsconfig.json file processing.
1 parent c6b6d88 commit edddfcb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎packages/tsbb/src/utils/watchCompile.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ export async function watchCompile(
3636
if (
3737
!disableBabel &&
3838
isMatch(output, ['**/*.[jt]s?(x)']) &&
39-
!isMatch(output, ['**/?(*.)+(spec|test).[jt]s?(x)', '**/*.d.ts'])
39+
!isMatch(output, ['**/?(*.)+(spec|test).[jt]s?(x)', '**/*.d.ts', '**/tsconfig.json'])
4040
) {
4141
transform(filepath, { entryDir, esm, ...other });
42-
} else if (!isMatch(output, ['**/?(*.)+(spec|test).[jt]s?(x)', 'tsconfig.json', '**/*.d.ts'])) {
42+
} else if (!isMatch(output, ['**/?(*.)+(spec|test).[jt]s?(x)', '**/tsconfig.json', '**/*.d.ts'])) {
4343
const result = ts.sys.readFile(filepath);
4444
outputFiles(output, result);
4545
}
@@ -52,13 +52,12 @@ export async function watchCompile(
5252
!isMatch(output, ['**/?(*.)+(spec|test).[jt]s?(x)', '**/*.d.ts'])
5353
) {
5454
transform(filepath, { entryDir, cjs, ...other });
55-
} else if (!isMatch(output, ['**/?(*.)+(spec|test).[jt]s?(x)', 'tsconfig.json', '**/*.d.ts'])) {
55+
} else if (!isMatch(output, ['**/?(*.)+(spec|test).[jt]s?(x)', '**/tsconfig.json', '**/*.d.ts'])) {
5656
const result = ts.sys.readFile(filepath);
5757
outputFiles(output, result);
5858
}
5959
}
6060
});
61-
// if ((tsOptions.noEmit && disableBabel) || (tsOptions.noEmit && !disableBabel)) {
6261
if ((tsOptions.noEmit && disableBabel) || (tsOptions.noEmit && !disableBabel)) {
6362
return;
6463
}

0 commit comments

Comments
 (0)
Please sign in to comment.