@vercel/fs-detectors 7.9.10 → 7.9.12
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/detect-builders.js +27 -0
- package/package.json +6 -6
package/dist/detect-builders.js
CHANGED
|
@@ -661,6 +661,25 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
+
const ignoredInstallCommandPatterns = /* @__PURE__ */ new Set();
|
|
665
|
+
for (const builder of apiBuilders) {
|
|
666
|
+
if (isOfficialRuntime("node", builder.use)) {
|
|
667
|
+
continue;
|
|
668
|
+
}
|
|
669
|
+
for (const [pattern, func] of Object.entries(
|
|
670
|
+
builder.config?.functions ?? {}
|
|
671
|
+
)) {
|
|
672
|
+
if (func.installCommand !== void 0) {
|
|
673
|
+
ignoredInstallCommandPatterns.add(pattern);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
for (const pattern of ignoredInstallCommandPatterns) {
|
|
678
|
+
warnings.push({
|
|
679
|
+
code: "unsupported_function_install_command",
|
|
680
|
+
message: `The \`installCommand\` property in \`functions["${pattern}"]\` is only supported for Node.js functions and will be ignored for other runtimes.`
|
|
681
|
+
});
|
|
682
|
+
}
|
|
664
683
|
const routesResult = getRouteResult(
|
|
665
684
|
apiRoutes,
|
|
666
685
|
dynamicRoutes,
|
|
@@ -1035,6 +1054,14 @@ function validateFunctions({ functions = {} }) {
|
|
|
1035
1054
|
};
|
|
1036
1055
|
}
|
|
1037
1056
|
}
|
|
1057
|
+
if (func.installCommand !== void 0) {
|
|
1058
|
+
if (typeof func.installCommand !== "string") {
|
|
1059
|
+
return {
|
|
1060
|
+
code: "invalid_function_property",
|
|
1061
|
+
message: `The property \`installCommand\` must be a string.`
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1038
1065
|
}
|
|
1039
1066
|
return null;
|
|
1040
1067
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/fs-detectors",
|
|
3
|
-
"version": "7.9.
|
|
3
|
+
"version": "7.9.12",
|
|
4
4
|
"description": "Vercel filesystem detectors",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"minimatch": "3.1.2",
|
|
21
21
|
"semver": "6.3.1",
|
|
22
22
|
"smol-toml": "1.5.2",
|
|
23
|
-
"@vercel/build-utils": "14.21.3",
|
|
24
|
-
"@vercel/error-utils": "2.2.1",
|
|
25
23
|
"@vercel/frameworks": "3.35.0",
|
|
26
|
-
"@vercel/python-analysis": "0.15.
|
|
27
|
-
"@vercel/routing-utils": "6.6.0"
|
|
24
|
+
"@vercel/python-analysis": "0.15.1",
|
|
25
|
+
"@vercel/routing-utils": "6.6.0",
|
|
26
|
+
"@vercel/error-utils": "2.2.1",
|
|
27
|
+
"@vercel/build-utils": "14.22.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/glob": "7.2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/node": "20.11.0",
|
|
34
34
|
"@types/semver": "7.3.10",
|
|
35
35
|
"vitest": "4.1.10",
|
|
36
|
-
"@vercel-internals/runtimes": "1.1.
|
|
36
|
+
"@vercel-internals/runtimes": "1.1.19"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "node build.mjs",
|