diff --git a/build/main.js b/build/main.js index f2d4c32..8c0400a 100644 --- a/build/main.js +++ b/build/main.js @@ -25211,6 +25211,7 @@ async function run() { return; } const lockfilePath = join2(workDir, lockfileFilename); + const packageFilePath = join2(workDir, "package.json"); core7.info(`Using lockfile: ${lockfilePath}`); core7.info( `Comparing package lockfiles between ${baseRef} and ${currentRef}` @@ -25235,12 +25236,12 @@ async function run() { } const basePackageJson = tryGetJSONFromRef( baseRef, - "package.json", + packageFilePath, workspacePath ); const currentPackageJson = tryGetJSONFromRef( currentRef, - "package.json", + packageFilePath, workspacePath ); let parsedCurrentLock; diff --git a/src/main.ts b/src/main.ts index 9a16c86..353f891 100644 --- a/src/main.ts +++ b/src/main.ts @@ -60,6 +60,7 @@ async function run(): Promise { return; } const lockfilePath = join(workDir, lockfileFilename); + const packageFilePath = join(workDir, 'package.json'); core.info(`Using lockfile: ${lockfilePath}`); core.info( @@ -88,12 +89,12 @@ async function run(): Promise { const basePackageJson = tryGetJSONFromRef( baseRef, - 'package.json', + packageFilePath, workspacePath ); const currentPackageJson = tryGetJSONFromRef( currentRef, - 'package.json', + packageFilePath, workspacePath );