Skip to content

Commit

Permalink
refactor: update getTSConfigCompilerOptions to exclude 'allowJs' from…
Browse files Browse the repository at this point in the history
… returned compiler options (fixes issue in mfd-core)
  • Loading branch information
steven-pribilinskiy committed Oct 14, 2024
1 parent f8b7937 commit 379dd5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
},
"formatter": {
"indentStyle": "space",
"lineWidth": 100
"lineWidth": 100,
"ignore": ["**/*.json"]
},
"javascript": {
"formatter": {
Expand Down
4 changes: 3 additions & 1 deletion src/compileTypes/helpers/getTSConfigCompilerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ export function getTSConfigCompilerOptions(
return parsedConfig.options;
}

return require(tsconfigPath).compilerOptions;
const { allowJs, ...compilerOptions } = require(tsconfigPath);

return compilerOptions;
}

0 comments on commit 379dd5f

Please sign in to comment.