@vercel/static-build 20.0.1 → 21.0.1
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 +76 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -31522,8 +31522,35 @@ ${issues}`,
|
|
|
31522
31522
|
}
|
|
31523
31523
|
}
|
|
31524
31524
|
}
|
|
31525
|
+
if (manifest != null) {
|
|
31526
|
+
normalizeDependencyGroups(manifest);
|
|
31527
|
+
}
|
|
31525
31528
|
return manifest;
|
|
31526
31529
|
}
|
|
31530
|
+
function normalizeDependencyGroups(manifest) {
|
|
31531
|
+
const groups = manifest.data["dependency-groups"];
|
|
31532
|
+
if (groups == null) {
|
|
31533
|
+
return;
|
|
31534
|
+
}
|
|
31535
|
+
const normalized = {};
|
|
31536
|
+
for (const [name, entries] of Object.entries(groups)) {
|
|
31537
|
+
const key = normalizePackageName(name);
|
|
31538
|
+
if (Object.prototype.hasOwnProperty.call(normalized, key)) {
|
|
31539
|
+
throw new PythonAnalysisError({
|
|
31540
|
+
message: `duplicate dependency group "${key}": group names must be unique after normalization`,
|
|
31541
|
+
code: "PYTHON_DUPLICATE_DEPENDENCY_GROUP",
|
|
31542
|
+
path: manifest.path
|
|
31543
|
+
});
|
|
31544
|
+
}
|
|
31545
|
+
normalized[key] = entries.map(
|
|
31546
|
+
(entry) => typeof entry === "string" ? entry : {
|
|
31547
|
+
...entry,
|
|
31548
|
+
"include-group": normalizePackageName(entry["include-group"])
|
|
31549
|
+
}
|
|
31550
|
+
);
|
|
31551
|
+
}
|
|
31552
|
+
manifest.data["dependency-groups"] = normalized;
|
|
31553
|
+
}
|
|
31527
31554
|
async function maybeLoadLockFile(root, subdir) {
|
|
31528
31555
|
const uvLockRelPath = import_node_path5.default.join(subdir, "uv.lock");
|
|
31529
31556
|
const uvLockPath = import_node_path5.default.join(root, uvLockRelPath);
|
|
@@ -37628,9 +37655,7 @@ var require_entrypoint = __commonJS({
|
|
|
37628
37655
|
};
|
|
37629
37656
|
}
|
|
37630
37657
|
function isDockerfileEntrypoint(entrypoint) {
|
|
37631
|
-
return
|
|
37632
|
-
import_path7.posix.basename(entrypoint)
|
|
37633
|
-
);
|
|
37658
|
+
return /(docker|container)file/i.test(import_path7.posix.basename(entrypoint));
|
|
37634
37659
|
}
|
|
37635
37660
|
function stripTrailingSlash(p) {
|
|
37636
37661
|
const stripped = p.replace(/\/+$/, "");
|
|
@@ -43534,6 +43559,52 @@ var require_detect_services = __commonJS({
|
|
|
43534
43559
|
}
|
|
43535
43560
|
});
|
|
43536
43561
|
|
|
43562
|
+
// ../fs-detectors/dist/services/detect-daemons.js
|
|
43563
|
+
var require_detect_daemons = __commonJS({
|
|
43564
|
+
"../fs-detectors/dist/services/detect-daemons.js"(exports, module2) {
|
|
43565
|
+
"use strict";
|
|
43566
|
+
var __defProp2 = Object.defineProperty;
|
|
43567
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
43568
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
43569
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
43570
|
+
var __export2 = (target, all) => {
|
|
43571
|
+
for (var name in all)
|
|
43572
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
43573
|
+
};
|
|
43574
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
43575
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43576
|
+
for (let key of __getOwnPropNames2(from))
|
|
43577
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
43578
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
43579
|
+
}
|
|
43580
|
+
return to;
|
|
43581
|
+
};
|
|
43582
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
43583
|
+
var detect_daemons_exports = {};
|
|
43584
|
+
__export2(detect_daemons_exports, {
|
|
43585
|
+
detectDaemons: () => detectDaemons2
|
|
43586
|
+
});
|
|
43587
|
+
module2.exports = __toCommonJS2(detect_daemons_exports);
|
|
43588
|
+
var import_build_utils5 = require("@vercel/build-utils");
|
|
43589
|
+
var import_utils = require_utils5();
|
|
43590
|
+
async function detectDaemons2({
|
|
43591
|
+
fs: fs5,
|
|
43592
|
+
workPath
|
|
43593
|
+
}) {
|
|
43594
|
+
const { config } = await (0, import_utils.readVercelConfig)(workPath ? fs5.chdir(workPath) : fs5);
|
|
43595
|
+
return getDetectedDaemons(config);
|
|
43596
|
+
}
|
|
43597
|
+
function getDetectedDaemons(config) {
|
|
43598
|
+
const daemons = config?.daemons;
|
|
43599
|
+
return (0, import_build_utils5.getDaemonNames)(config).map((name) => {
|
|
43600
|
+
const daemon = daemons?.[name];
|
|
43601
|
+
const entrypoint = typeof daemon === "object" && daemon !== null ? daemon.entrypoint : void 0;
|
|
43602
|
+
return typeof entrypoint === "string" ? { name, entrypoint } : { name };
|
|
43603
|
+
});
|
|
43604
|
+
}
|
|
43605
|
+
}
|
|
43606
|
+
});
|
|
43607
|
+
|
|
43537
43608
|
// ../fs-detectors/dist/services/migrate.js
|
|
43538
43609
|
var require_migrate = __commonJS({
|
|
43539
43610
|
"../fs-detectors/dist/services/migrate.js"(exports, module2) {
|
|
@@ -48967,6 +49038,7 @@ var require_dist9 = __commonJS({
|
|
|
48967
49038
|
detectApiDirectory: () => import_detect_builders.detectApiDirectory,
|
|
48968
49039
|
detectApiExtensions: () => import_detect_builders.detectApiExtensions,
|
|
48969
49040
|
detectBuilders: () => import_detect_builders.detectBuilders,
|
|
49041
|
+
detectDaemons: () => import_detect_daemons.detectDaemons,
|
|
48970
49042
|
detectFileSystemAPI: () => import_detect_file_system_api.detectFileSystemAPI,
|
|
48971
49043
|
detectFramework: () => import_detect_framework.detectFramework,
|
|
48972
49044
|
detectFrameworkRecord: () => import_detect_framework.detectFrameworkRecord,
|
|
@@ -49009,6 +49081,7 @@ var require_dist9 = __commonJS({
|
|
|
49009
49081
|
module2.exports = __toCommonJS2(src_exports2);
|
|
49010
49082
|
var import_detect_builders = require_detect_builders();
|
|
49011
49083
|
var import_detect_services = require_detect_services();
|
|
49084
|
+
var import_detect_daemons = require_detect_daemons();
|
|
49012
49085
|
var import_resolve_v2 = require_resolve_v2();
|
|
49013
49086
|
var import_resolve = require_resolve();
|
|
49014
49087
|
var import_migrate = require_migrate();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.1",
|
|
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.73",
|
|
19
19
|
"@vercel/static-config": "3.4.4"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@vercel/build-utils": "14.
|
|
22
|
+
"@vercel/build-utils": "14.21.1"
|
|
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.21.1",
|
|
44
44
|
"@vercel/error-utils": "2.2.1",
|
|
45
45
|
"@vercel/frameworks": "3.35.0",
|
|
46
46
|
"@vercel/routing-utils": "6.6.0",
|
|
47
|
-
"@vercel/fs-detectors": "7.9.
|
|
47
|
+
"@vercel/fs-detectors": "7.9.8"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "node ../../utils/build-builder.mjs",
|