@cloudflare/autoconfig 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -43700,6 +43700,12 @@ function getInstalledPackageVersion(packageName, projectPath, opts = {}) {
43700
43700
  readFileSync$1(packageJsonPath),
43701
43701
  packageJsonPath
43702
43702
  );
43703
+ if (packageJson.name !== packageName) {
43704
+ const bundledVersion = packageJson.bundledVersions?.[packageName];
43705
+ if (bundledVersion !== void 0) {
43706
+ return bundledVersion;
43707
+ }
43708
+ }
43703
43709
  return packageJson.version;
43704
43710
  } catch {
43705
43711
  }