File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,19 +59,18 @@ export function parseTasks(
5959
6060 for ( const dep of dependencies ) {
6161 const depName = typeof dep === 'string' ? dep : dep . name ;
62- const dtsOnly = typeof dep === 'string' ? false : ( dep . dtsOnly ?? false ) ;
6362 const importPath = join ( cwd , DIST_DIR , depName ) ;
6463 const distPath = join ( cwd , DIST_DIR , depName ) ;
65- const depPath = dtsOnly ? null : findDepPath ( depName ) ;
64+ const depPath = findDepPath ( depName ) ;
6665
67- if ( ! depPath && ! dtsOnly ) {
66+ if ( ! depPath ) {
6867 throw new Error ( `Failed to resolve dependency: ${ depName } ` ) ;
6968 }
7069
71- const depEntry = dtsOnly ? '' : require . resolve ( depName , { paths : [ cwd ] } ) ;
70+ const depEntry = require . resolve ( depName , { paths : [ cwd ] } ) ;
7271 const info = {
7372 depName,
74- depPath : depPath ?? '' ,
73+ depPath,
7574 depEntry,
7675 distPath,
7776 importPath,
You can’t perform that action at this time.
0 commit comments