Skip to content

Commit 356ab48

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: src/normalize-options.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@ export function normalizeOptions(
9494
mainFields: defaultMainFields,
9595
...options,
9696
project,
97-
tsconfig: {
98-
references: references ?? 'auto',
99-
configFile: configFile || '',
100-
},
97+
tsconfig: configFile
98+
? {
99+
references: references ?? 'auto',
100+
configFile: configFile,
101+
}
102+
: undefined,
101103
}
102104

103105
if (configFile) {

0 commit comments

Comments
 (0)