@vercel/fs-detectors 7.1.2 → 7.1.5

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.
@@ -25,6 +25,7 @@ __export(detect_framework_exports, {
25
25
  removeSupersededFrameworks: () => removeSupersededFrameworks
26
26
  });
27
27
  module.exports = __toCommonJS(detect_framework_exports);
28
+ var import_build_utils = require("@vercel/build-utils");
28
29
  var import_child_process = require("child_process");
29
30
  function shouldIncludeExperimentalFrameworks(useExperimentalFrameworks) {
30
31
  if (typeof useExperimentalFrameworks === "boolean") {
@@ -226,15 +227,12 @@ function detectFrameworkVersion(frameworkRecord) {
226
227
  if (!firstMatchPackage?.matchPackage) {
227
228
  return;
228
229
  }
229
- return lookupInstalledVersion(
230
- process.execPath,
231
- firstMatchPackage.matchPackage
232
- );
230
+ return lookupInstalledVersion(firstMatchPackage.matchPackage);
233
231
  }
234
- function lookupInstalledVersion(cwd, packageName) {
232
+ function lookupInstalledVersion(packageName) {
235
233
  try {
236
234
  const script = `require('${packageName}/package.json').version`;
237
- return (0, import_child_process.spawnSync)(cwd, ["-p", script], {
235
+ return (0, import_child_process.spawnSync)((0, import_build_utils.getNodeExecPath)(), ["-p", script], {
238
236
  encoding: "utf-8"
239
237
  }).stdout.trim();
240
238
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "7.1.2",
3
+ "version": "7.1.5",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -19,11 +19,11 @@
19
19
  "json5": "2.2.2",
20
20
  "minimatch": "3.1.2",
21
21
  "semver": "6.3.1",
22
- "@vercel/build-utils": "14.5.1",
23
22
  "@vercel/error-utils": "2.2.1",
24
- "@vercel/frameworks": "3.33.0",
23
+ "@vercel/build-utils": "14.7.0",
25
24
  "@vercel/python-analysis": "0.14.0",
26
- "@vercel/routing-utils": "6.5.0"
25
+ "@vercel/routing-utils": "6.5.0",
26
+ "@vercel/frameworks": "3.33.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/glob": "7.2.0",