Skip to content

Commit 29a27ac

Browse files
committed
fix: don't set empty configFile when no tsconfig found
1 parent 6a368d6 commit 29a27ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: src/normalize-options.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,9 @@ export function normalizeOptions(
9494
mainFields: defaultMainFields,
9595
...options,
9696
project,
97-
tsconfig: {
98-
references: references ?? 'auto',
99-
configFile: configFile || '',
100-
},
97+
tsconfig: configFile
98+
? { references: references ?? 'auto', configFile: configFile }
99+
: undefined,
101100
}
102101

103102
if (configFile) {

0 commit comments

Comments
 (0)