Skip to content

Commit

Permalink
fix(core): fix compilerOptions may not exist (#21364)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi authored Jan 27, 2024
1 parent 73d37cc commit 1bd2e0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/js/src/utils/typescript/ts-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function addTsConfigPath(
lookupPaths: string[]
) {
updateJson(tree, getRootTsConfigPathInTree(tree), (json) => {
json.compilerOptions ??= {};
const c = json.compilerOptions;
c.paths ??= {};

Expand Down

0 comments on commit 1bd2e0e

Please sign in to comment.