Skip to content

Commit 379dd5f

Browse files
refactor: update getTSConfigCompilerOptions to exclude 'allowJs' from returned compiler options (fixes issue in mfd-core)
1 parent f8b7937 commit 379dd5f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

biome.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
},
77
"formatter": {
88
"indentStyle": "space",
9-
"lineWidth": 100
9+
"lineWidth": 100,
10+
"ignore": ["**/*.json"]
1011
},
1112
"javascript": {
1213
"formatter": {

src/compileTypes/helpers/getTSConfigCompilerOptions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ export function getTSConfigCompilerOptions(
3232
return parsedConfig.options;
3333
}
3434

35-
return require(tsconfigPath).compilerOptions;
35+
const { allowJs, ...compilerOptions } = require(tsconfigPath);
36+
37+
return compilerOptions;
3638
}

0 commit comments

Comments
 (0)