@vercel/static-build 2.9.33 → 2.9.34
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 +23 -5
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -27676,7 +27676,13 @@ var require_detect_services = __commonJS({
|
|
|
27676
27676
|
return inferredConfig;
|
|
27677
27677
|
}
|
|
27678
27678
|
async function detectServices2(options) {
|
|
27679
|
-
const {
|
|
27679
|
+
const {
|
|
27680
|
+
fs: fs5,
|
|
27681
|
+
workPath,
|
|
27682
|
+
detectEntrypoint,
|
|
27683
|
+
configuredServices: providedConfiguredServices,
|
|
27684
|
+
configuredServicesType
|
|
27685
|
+
} = options;
|
|
27680
27686
|
const scopedFs = workPath ? fs5.chdir(workPath) : fs5;
|
|
27681
27687
|
const { config: vercelConfig, error: configError } = await (0, import_utils.readVercelConfig)(scopedFs);
|
|
27682
27688
|
if (configError) {
|
|
@@ -27689,8 +27695,9 @@ var require_detect_services = __commonJS({
|
|
|
27689
27695
|
warnings: []
|
|
27690
27696
|
});
|
|
27691
27697
|
}
|
|
27692
|
-
const
|
|
27693
|
-
const
|
|
27698
|
+
const hasProvidedConfiguredServices = providedConfiguredServices && Object.keys(providedConfiguredServices).length > 0;
|
|
27699
|
+
const hasNonEmptyPublicServicesConfig = hasProvidedConfiguredServices && configuredServicesType === "services" || !hasProvidedConfiguredServices && vercelConfig?.services && Object.keys(vercelConfig.services).length > 0;
|
|
27700
|
+
const configuredServices = hasProvidedConfiguredServices ? providedConfiguredServices : hasNonEmptyPublicServicesConfig ? vercelConfig?.services : vercelConfig?.experimentalServices;
|
|
27694
27701
|
const hasConfiguredServices = configuredServices && Object.keys(configuredServices).length > 0;
|
|
27695
27702
|
if (!hasConfiguredServices) {
|
|
27696
27703
|
const detectors = [
|
|
@@ -28152,7 +28159,12 @@ var require_get_services_builders = __commonJS({
|
|
|
28152
28159
|
return env === "1" || env?.toLowerCase() === "true";
|
|
28153
28160
|
}
|
|
28154
28161
|
async function getServicesBuilders2(options) {
|
|
28155
|
-
const {
|
|
28162
|
+
const {
|
|
28163
|
+
workPath,
|
|
28164
|
+
configuredServices,
|
|
28165
|
+
configuredServicesType,
|
|
28166
|
+
projectFramework
|
|
28167
|
+
} = options;
|
|
28156
28168
|
const hasServiceDefinitions = configuredServices != null && Object.keys(configuredServices).length > 0;
|
|
28157
28169
|
if (projectFramework === "services" && !hasServiceDefinitions && !isExperimentalServicesAutoDetectionEnabled()) {
|
|
28158
28170
|
return {
|
|
@@ -28191,7 +28203,11 @@ var require_get_services_builders = __commonJS({
|
|
|
28191
28203
|
};
|
|
28192
28204
|
}
|
|
28193
28205
|
const fs5 = new import_local_file_system_detector.LocalFileSystemDetector(workPath);
|
|
28194
|
-
const result = await (0, import_detect_services.detectServices)({
|
|
28206
|
+
const result = await (0, import_detect_services.detectServices)({
|
|
28207
|
+
fs: fs5,
|
|
28208
|
+
configuredServices,
|
|
28209
|
+
configuredServicesType
|
|
28210
|
+
});
|
|
28195
28211
|
const warningResponses = result.warnings.map((w) => ({
|
|
28196
28212
|
code: w.code,
|
|
28197
28213
|
message: w.message
|
|
@@ -28352,11 +28368,13 @@ var require_detect_builders = __commonJS({
|
|
|
28352
28368
|
const { services, experimentalServices, projectSettings = {} } = options;
|
|
28353
28369
|
const { framework } = projectSettings;
|
|
28354
28370
|
const configuredServices = services ?? experimentalServices;
|
|
28371
|
+
const configuredServicesType = services != null ? "services" : "experimentalServices";
|
|
28355
28372
|
const hasServicesConfig = configuredServices != null && typeof configuredServices === "object";
|
|
28356
28373
|
if (hasServicesConfig || framework === "services") {
|
|
28357
28374
|
return (0, import_get_services_builders.getServicesBuilders)({
|
|
28358
28375
|
workPath: options.workPath,
|
|
28359
28376
|
configuredServices,
|
|
28377
|
+
configuredServicesType,
|
|
28360
28378
|
projectFramework: framework
|
|
28361
28379
|
});
|
|
28362
28380
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.34",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"ts-morph": "12.0.0",
|
|
17
17
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
|
|
18
|
-
"@vercel/gatsby-plugin-vercel-builder": "2.2.
|
|
18
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.2.11",
|
|
19
19
|
"@vercel/static-config": "3.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"semver": "7.5.2",
|
|
38
38
|
"tree-kill": "1.2.2",
|
|
39
39
|
"vitest": "2.0.3",
|
|
40
|
-
"@vercel/build-utils": "13.26.
|
|
41
|
-
"@vercel/
|
|
42
|
-
"@vercel/
|
|
40
|
+
"@vercel/build-utils": "13.26.5",
|
|
41
|
+
"@vercel/error-utils": "2.1.0",
|
|
42
|
+
"@vercel/fs-detectors": "6.7.5",
|
|
43
43
|
"@vercel/frameworks": "3.26.1",
|
|
44
|
-
"@vercel/
|
|
44
|
+
"@vercel/routing-utils": "6.2.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "node ../../utils/build-builder.mjs",
|