Skip to content

Commit 5ea8849

Browse files
committed
Comment
1 parent dd9b0d2 commit 5ea8849

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cli-v3/src/commands/update.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ async function tryResolveTriggerPackageVersion(
317317

318318
logger.debug(`Resolved ${name} package version path`, { name, resolvedPath });
319319

320+
// IMPORTANT: keep the two dirname calls, as the first one resolves the nested package.json inside dist/commonjs or dist/esm
320321
const { packageJson } = await getPackageJson(dirname(dirname(resolvedPath)));
321322

322323
if (packageJson.version) {

0 commit comments

Comments
 (0)