Skip to content

Commit 1190035

Browse files
committed
Revert "fix: handle dtsOnly flag in dependency parsing (#56)"
This reverts commit ee499ae.
1 parent d969e2b commit 1190035

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/helper.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)