File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ export function antfu(
117
117
}
118
118
}
119
119
120
+ const typescriptOptions = resolveSubOptions ( options , 'typescript' )
121
+ const tsconfigPath = 'tsconfigPath' in typescriptOptions ? typescriptOptions . tsconfigPath : undefined
122
+
120
123
// Base configs
121
124
configs . push (
122
125
ignores ( ) ,
@@ -145,7 +148,7 @@ export function antfu(
145
148
146
149
if ( enableTypeScript ) {
147
150
configs . push ( typescript ( {
148
- ...resolveSubOptions ( options , 'typescript' ) ,
151
+ ...typescriptOptions ,
149
152
componentExts,
150
153
overrides : getOverrides ( options , 'typescript' ) ,
151
154
} ) )
@@ -182,14 +185,14 @@ export function antfu(
182
185
if ( enableReact ) {
183
186
configs . push ( react ( {
184
187
overrides : getOverrides ( options , 'react' ) ,
185
- tsconfigPath : getOverrides ( options , 'typescript' ) . tsconfigPath ,
188
+ tsconfigPath,
186
189
} ) )
187
190
}
188
191
189
192
if ( enableSolid ) {
190
193
configs . push ( solid ( {
191
194
overrides : getOverrides ( options , 'solid' ) ,
192
- tsconfigPath : getOverrides ( options , 'typescript' ) . tsconfigPath ,
195
+ tsconfigPath,
193
196
typescript : ! ! enableTypeScript ,
194
197
} ) )
195
198
}
You can’t perform that action at this time.
0 commit comments