File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -24698,7 +24698,7 @@ function getLsCommand(lockfilePath, packageName) {
2469824698 return `npm ls ${packageName}`;
2469924699 }
2470024700 if (lockfilePath.endsWith("pnpm-lock.yaml")) {
24701- return `pnpm why ${packageName}`;
24701+ return `pnpm -r why ${packageName}`;
2470224702 }
2470324703 if (lockfilePath.endsWith("yarn.lock")) {
2470424704 return `yarn why ${packageName}`;
@@ -24974,13 +24974,21 @@ async function run() {
2497424974 let parsedCurrentLock;
2497524975 let parsedBaseLock;
2497624976 try {
24977- parsedCurrentLock = await parse(currentPackageLock, lockfilePath, currentPackageJson ?? void 0);
24977+ parsedCurrentLock = await parse(
24978+ currentPackageLock,
24979+ lockfilePath,
24980+ currentPackageJson ?? void 0
24981+ );
2497824982 } catch (err) {
2497924983 core7.setFailed(`Failed to parse current lockfile: ${err}`);
2498024984 return;
2498124985 }
2498224986 try {
24983- parsedBaseLock = await parse(basePackageLock, lockfilePath, basePackageJson ?? void 0);
24987+ parsedBaseLock = await parse(
24988+ basePackageLock,
24989+ lockfilePath,
24990+ basePackageJson ?? void 0
24991+ );
2498424992 } catch (err) {
2498524993 core7.setFailed(`Failed to parse base lockfile: ${err}`);
2498624994 return;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function getLsCommand(
66 return `npm ls ${ packageName } ` ;
77 }
88 if ( lockfilePath . endsWith ( 'pnpm-lock.yaml' ) ) {
9- return `pnpm why ${ packageName } ` ;
9+ return `pnpm -r why ${ packageName } ` ;
1010 }
1111 if ( lockfilePath . endsWith ( 'yarn.lock' ) ) {
1212 return `yarn why ${ packageName } ` ;
You can’t perform that action at this time.
0 commit comments