@vercel/static-build 5.0.3 → 7.0.0
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 +7 -6
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -33387,6 +33387,7 @@ var require_detect_framework = __commonJS({
|
|
|
33387
33387
|
removeSupersededFrameworks: () => removeSupersededFrameworks
|
|
33388
33388
|
});
|
|
33389
33389
|
module2.exports = __toCommonJS2(detect_framework_exports);
|
|
33390
|
+
var import_build_utils5 = require("@vercel/build-utils");
|
|
33390
33391
|
var import_child_process2 = require("child_process");
|
|
33391
33392
|
function shouldIncludeExperimentalFrameworks(useExperimentalFrameworks) {
|
|
33392
33393
|
if (typeof useExperimentalFrameworks === "boolean") {
|
|
@@ -33588,15 +33589,12 @@ var require_detect_framework = __commonJS({
|
|
|
33588
33589
|
if (!firstMatchPackage?.matchPackage) {
|
|
33589
33590
|
return;
|
|
33590
33591
|
}
|
|
33591
|
-
return lookupInstalledVersion(
|
|
33592
|
-
process.execPath,
|
|
33593
|
-
firstMatchPackage.matchPackage
|
|
33594
|
-
);
|
|
33592
|
+
return lookupInstalledVersion(firstMatchPackage.matchPackage);
|
|
33595
33593
|
}
|
|
33596
|
-
function lookupInstalledVersion(
|
|
33594
|
+
function lookupInstalledVersion(packageName) {
|
|
33597
33595
|
try {
|
|
33598
33596
|
const script = `require('${packageName}/package.json').version`;
|
|
33599
|
-
return (0, import_child_process2.spawnSync)(
|
|
33597
|
+
return (0, import_child_process2.spawnSync)((0, import_build_utils5.getNodeExecPath)(), ["-p", script], {
|
|
33600
33598
|
encoding: "utf-8"
|
|
33601
33599
|
}).stdout.trim();
|
|
33602
33600
|
} catch (error) {
|
|
@@ -41303,6 +41301,9 @@ function parseFunctionConfig(data) {
|
|
|
41303
41301
|
if (typeof data.maxDuration === "number" || data.maxDuration === "max") {
|
|
41304
41302
|
config.maxDuration = data.maxDuration;
|
|
41305
41303
|
}
|
|
41304
|
+
if (typeof data.affinity === "object" && data.affinity !== null && "mode" in data.affinity && data.affinity.mode === "strict" && Object.keys(data.affinity).length === 1) {
|
|
41305
|
+
config.affinity = { mode: "strict" };
|
|
41306
|
+
}
|
|
41306
41307
|
if (typeof data.maxConcurrency === "number" && Number.isInteger(data.maxConcurrency) && data.maxConcurrency >= 1) {
|
|
41307
41308
|
config.maxConcurrency = data.maxConcurrency;
|
|
41308
41309
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"ts-morph": "12.0.0",
|
|
17
17
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.12",
|
|
18
|
-
"@vercel/gatsby-plugin-vercel-builder": "2.2.
|
|
18
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.2.50",
|
|
19
19
|
"@vercel/static-config": "3.4.3"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@vercel/build-utils": "14.
|
|
22
|
+
"@vercel/build-utils": "14.7.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/aws-lambda": "8.10.64",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"semver": "7.5.2",
|
|
41
41
|
"tree-kill": "1.2.2",
|
|
42
42
|
"vitest": "4.1.10",
|
|
43
|
-
"@vercel/build-utils": "14.
|
|
43
|
+
"@vercel/build-utils": "14.7.0",
|
|
44
44
|
"@vercel/error-utils": "2.2.1",
|
|
45
45
|
"@vercel/frameworks": "3.33.0",
|
|
46
|
-
"@vercel/
|
|
47
|
-
"@vercel/
|
|
46
|
+
"@vercel/routing-utils": "6.5.0",
|
|
47
|
+
"@vercel/fs-detectors": "7.1.5"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "node ../../utils/build-builder.mjs",
|