We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f4ec6 commit cb7319fCopy full SHA for cb7319f
packages/cloudflare/src/cli/utils/run-wrangler.ts
@@ -28,10 +28,7 @@ function isYarnModern(options: BuildOptions) {
28
29
if (!packageJson.packageManager?.startsWith("yarn")) return false;
30
31
- const [, version] = packageJson.packageManager.split("@");
32
- if (!version) return false;
33
-
34
- return compareSemver(version, ">=", "4.0.0");
+ return version ? compareSemver(version, ">=", "4.0.0") : false;
35
}
36
37
/**
0 commit comments