Skip to content

Commit

Permalink
adjust package version detection in yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Aug 21, 2023
1 parent 4570aa6 commit f9913c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/proud-lamps-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cloudflare/next-on-pages': patch
---

fix package version detection for yarn
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ export async function getPackageManagerInfo(
pm === 'yarn (berry)'
? (useDlx: boolean) => [useDlx ? 'dlx' : 'exec']
: undefined,
infoArgs: ['info'],
infoArgs: ['list', '--pattern'],
getPackageVersionRegex: (name: string) =>
new RegExp(`"name":"${name}@(.*?)"`, 'i'),
};
case 'npm':
default:
Expand Down

0 comments on commit f9913c1

Please sign in to comment.