@@ -21,7 +21,7 @@ import {
21
21
import {
22
22
ensureAbsolute ,
23
23
ensureArray ,
24
- fileTypesPath ,
24
+ findTypesPath ,
25
25
isNativeObj ,
26
26
isRegExp ,
27
27
normalizePath ,
@@ -169,10 +169,13 @@ export function dtsPlugin(options: PluginOptions = {}): import('vite').Plugin {
169
169
: config . build . lib . entry
170
170
171
171
if ( Array . isArray ( input ) ) {
172
- entries = input . reduce ( ( prev , current ) => {
173
- prev [ basename ( current ) ] = current
174
- return prev
175
- } , { } as Record < string , string > )
172
+ entries = input . reduce (
173
+ ( prev , current ) => {
174
+ prev [ basename ( current ) ] = current
175
+ return prev
176
+ } ,
177
+ { } as Record < string , string >
178
+ )
176
179
} else {
177
180
entries = { ...input }
178
181
}
@@ -213,10 +216,13 @@ export function dtsPlugin(options: PluginOptions = {}): import('vite').Plugin {
213
216
const input = typeof options . input === 'string' ? [ options . input ] : options . input
214
217
215
218
if ( Array . isArray ( input ) ) {
216
- entries = input . reduce ( ( prev , current ) => {
217
- prev [ basename ( current ) ] = current
218
- return prev
219
- } , { } as Record < string , string > )
219
+ entries = input . reduce (
220
+ ( prev , current ) => {
221
+ prev [ basename ( current ) ] = current
222
+ return prev
223
+ } ,
224
+ { } as Record < string , string >
225
+ )
220
226
} else {
221
227
entries = { ...input }
222
228
}
@@ -314,7 +320,6 @@ export function dtsPlugin(options: PluginOptions = {}): import('vite').Plugin {
314
320
program = createProgram ( {
315
321
host,
316
322
rootNames,
317
- projectReferences : content ?. projectReferences ,
318
323
options : compilerOptions
319
324
} )
320
325
@@ -565,7 +570,7 @@ export function dtsPlugin(options: PluginOptions = {}): import('vite').Plugin {
565
570
} catch ( e ) { }
566
571
567
572
const entryNames = Object . keys ( entries )
568
- const types = fileTypesPath ( pkg . publishConfig , pkg )
573
+ const types = findTypesPath ( pkg . publishConfig , pkg )
569
574
const multiple = entryNames . length > 1
570
575
571
576
const cleanPath = ( path : string ) => {
0 commit comments