vercel-cli 48.5.0__tar.gz → 48.6.0__tar.gz
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.
Potentially problematic release.
This version of vercel-cli might be problematic. Click here for more details.
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/PKG-INFO +1 -1
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/dist/index.js +17 -6
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/.package-lock.json +3 -3
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/CHANGELOG.md +6 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/node-version.d.ts +4 -1
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/node-version.js +36 -2
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/run-user-scripts.d.ts +6 -10
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/run-user-scripts.js +8 -10
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.d.ts +2 -2
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/index.js +44 -10
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/types.d.ts +3 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/types.js +4 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/package.json +1 -1
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/package.json +2 -2
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/.gitignore +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/README.md +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/pyproject.toml +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/LICENSE +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/README.md +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/dist/VERCEL_DIR_README.txt +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/dist/builder-worker.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/dist/get-latest-worker.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/dist/vc.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/LICENSE +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/build.mjs +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/clone-env.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/clone-env.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/debug.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/debug.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/default-cache-path-glob.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/default-cache-path-glob.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/edge-function.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/edge-function.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/errors.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/errors.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-blob.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-blob.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-fs-ref.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-fs-ref.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-ref.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/file-ref.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/download.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/download.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/get-writable-directory.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/get-writable-directory.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/glob.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/glob.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/normalize-path.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/normalize-path.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/read-config-file.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/read-config-file.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/rename.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/rename.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/stream-to-buffer.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/fs/stream-to-buffer.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/generate-node-builder-functions.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/generate-node-builder-functions.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-ignore-filter.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-ignore-filter.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-installed-package-version.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-installed-package-version.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-platform-env.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-platform-env.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-prefixed-env-vars.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/get-prefixed-env-vars.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/hard-link-dir.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/hard-link-dir.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/lambda.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/lambda.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/nodejs-lambda.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/nodejs-lambda.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/os.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/os.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/prerender.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/prerender.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/schemas.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/schemas.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/should-serve.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/should-serve.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/trace/constants.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/trace/constants.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/trace/index.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/trace/index.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/trace/trace.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/trace/trace.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/validate-npmrc.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/dist/validate-npmrc.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/file-blob.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/file-fs-ref.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/file-ref.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/fs/download.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/fs/get-writable-directory.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/fs/glob.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/fs/rename.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/fs/run-user-scripts.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/fs/stream-to-buffer.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/lambda.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/detect-agent/CHANGELOG.md +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/detect-agent/LICENSE +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/detect-agent/README.md +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/detect-agent/dist/index.d.ts +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/detect-agent/dist/index.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/detect-agent/package.json +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/LICENSE +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/dist/index.js +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/package.json +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/vc_init.py +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/vc_init_dev_asgi.py +0 -0
- {vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/vc_init_dev_wsgi.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vercel-cli
|
|
3
|
-
Version: 48.
|
|
3
|
+
Version: 48.6.0
|
|
4
4
|
Summary: Vercel CLI packaged for Python (bundled Node.js, vendored npm)
|
|
5
5
|
Project-URL: Homepage, https://github.com/nuage-studio/vercel-cli-python
|
|
6
6
|
Project-URL: Repository, https://github.com/nuage-studio/vercel-cli-python
|
|
@@ -49550,7 +49550,7 @@ var require_package = __commonJS2({
|
|
|
49550
49550
|
"../client/package.json"(exports2, module2) {
|
|
49551
49551
|
module2.exports = {
|
|
49552
49552
|
name: "@vercel/client",
|
|
49553
|
-
version: "17.0
|
|
49553
|
+
version: "17.1.0",
|
|
49554
49554
|
main: "dist/index.js",
|
|
49555
49555
|
typings: "dist/index.d.ts",
|
|
49556
49556
|
homepage: "https://vercel.com",
|
|
@@ -49589,7 +49589,7 @@ var require_package = __commonJS2({
|
|
|
49589
49589
|
vitest: "2.0.1"
|
|
49590
49590
|
},
|
|
49591
49591
|
dependencies: {
|
|
49592
|
-
"@vercel/build-utils": "12.
|
|
49592
|
+
"@vercel/build-utils": "12.2.0",
|
|
49593
49593
|
"@vercel/error-utils": "2.0.3",
|
|
49594
49594
|
"@vercel/microfrontends": "1.2.2",
|
|
49595
49595
|
"@vercel/routing-utils": "5.2.0",
|
|
@@ -120639,6 +120639,9 @@ var require_detect_builders = __commonJS2({
|
|
|
120639
120639
|
config2.excludeFiles = func.excludeFiles;
|
|
120640
120640
|
}
|
|
120641
120641
|
}
|
|
120642
|
+
if (options.bunVersion) {
|
|
120643
|
+
config2.bunVersion = options.bunVersion;
|
|
120644
|
+
}
|
|
120642
120645
|
const builder = {
|
|
120643
120646
|
use,
|
|
120644
120647
|
src: fileName,
|
|
@@ -120695,6 +120698,9 @@ var require_detect_builders = __commonJS2({
|
|
|
120695
120698
|
if (projectSettings.outputDirectory) {
|
|
120696
120699
|
config2.outputDirectory = projectSettings.outputDirectory;
|
|
120697
120700
|
}
|
|
120701
|
+
if (options.bunVersion) {
|
|
120702
|
+
config2.bunVersion = options.bunVersion;
|
|
120703
|
+
}
|
|
120698
120704
|
if (pkg && (framework === void 0 || framework !== "storybook" && createdAt < Date.parse("2020-03-01"))) {
|
|
120699
120705
|
const deps = {
|
|
120700
120706
|
...pkg.dependencies,
|
|
@@ -120815,7 +120821,7 @@ var require_detect_builders = __commonJS2({
|
|
|
120815
120821
|
}
|
|
120816
120822
|
if (frontendBuilder && (0, import_is_official_runtime.isOfficialRuntime)("next", frontendBuilder.use)) {
|
|
120817
120823
|
for (const fnKey of unusedFunctions.values()) {
|
|
120818
|
-
if (fnKey.startsWith("pages/") || fnKey.startsWith("src/pages") || fnKey.startsWith("app/") || fnKey.startsWith("src/app/")) {
|
|
120824
|
+
if (fnKey.startsWith("pages/") || fnKey.startsWith("src/pages") || fnKey.startsWith("app/") || fnKey.startsWith("src/app/") || fnKey.startsWith("middleware") || fnKey.startsWith("src/middleware")) {
|
|
120819
120825
|
unusedFunctions.delete(fnKey);
|
|
120820
120826
|
} else {
|
|
120821
120827
|
return {
|
|
@@ -146798,7 +146804,8 @@ var init_validate_config = __esm({
|
|
|
146798
146804
|
trailingSlash: import_routing_utils.trailingSlashSchema,
|
|
146799
146805
|
functions: import_build_utils12.functionsSchema,
|
|
146800
146806
|
images: imagesSchema,
|
|
146801
|
-
crons: cronsSchema
|
|
146807
|
+
crons: cronsSchema,
|
|
146808
|
+
bunVersion: { type: "string" }
|
|
146802
146809
|
}
|
|
146803
146810
|
};
|
|
146804
146811
|
ajv = new import_ajv2.default();
|
|
@@ -148307,8 +148314,12 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148307
148314
|
devCommand: projectSettings.devCommand ?? void 0,
|
|
148308
148315
|
buildCommand: projectSettings.buildCommand ?? void 0,
|
|
148309
148316
|
framework: projectSettings.framework,
|
|
148310
|
-
nodeVersion: projectSettings.nodeVersion
|
|
148311
|
-
|
|
148317
|
+
nodeVersion: projectSettings.nodeVersion,
|
|
148318
|
+
bunVersion: localConfig.bunVersion ?? void 0
|
|
148319
|
+
} : {
|
|
148320
|
+
...build2.config || {},
|
|
148321
|
+
bunVersion: localConfig.bunVersion ?? void 0
|
|
148322
|
+
};
|
|
148312
148323
|
const builderSpan = span.child("vc.builder", {
|
|
148313
148324
|
name: builderPkg.name
|
|
148314
148325
|
});
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"requires": true,
|
|
4
4
|
"packages": {
|
|
5
5
|
"node_modules/@vercel/build-utils": {
|
|
6
|
-
"version": "12.
|
|
7
|
-
"resolved": "https://registry.npmjs.org/@vercel/build-utils/-/build-utils-12.
|
|
8
|
-
"integrity": "sha512-
|
|
6
|
+
"version": "12.2.0",
|
|
7
|
+
"resolved": "https://registry.npmjs.org/@vercel/build-utils/-/build-utils-12.2.0.tgz",
|
|
8
|
+
"integrity": "sha512-6gcZ8mA/pW/mD/uUVEGHf+Y2i0Lfm+1qx/eol59SNftoce26LQhsGnz7fnBzspIJTjUbk7iB+gSm9ybe457FYQ==",
|
|
9
9
|
"license": "Apache-2.0"
|
|
10
10
|
},
|
|
11
11
|
"node_modules/@vercel/detect-agent": {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { NodeVersion } from '../types';
|
|
1
|
+
import { BunVersion, NodeVersion, Version } from '../types';
|
|
2
2
|
export type NodeVersionMajor = ReturnType<typeof getOptions>[number]['major'];
|
|
3
3
|
export declare const NODE_VERSIONS: NodeVersion[];
|
|
4
|
+
export declare const BUN_VERSIONS: BunVersion[];
|
|
4
5
|
export declare function getNodeVersionByMajor(major: number): NodeVersion | undefined;
|
|
5
6
|
declare function getOptions(): NodeVersion[];
|
|
6
7
|
export declare function getAvailableNodeVersions(): NodeVersionMajor[];
|
|
7
8
|
export declare function getLatestNodeVersion(availableVersions?: NodeVersionMajor[]): NodeVersion;
|
|
8
9
|
export declare function getDiscontinuedNodeVersions(): NodeVersion[];
|
|
9
10
|
export declare function getSupportedNodeVersion(engineRange: string | undefined, isAuto?: boolean, availableVersions?: NodeVersionMajor[]): Promise<NodeVersion>;
|
|
11
|
+
export declare function getSupportedBunVersion(engineRange: string): BunVersion;
|
|
12
|
+
export declare function isBunVersion(version: Version): boolean;
|
|
10
13
|
export {};
|
|
@@ -28,12 +28,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var node_version_exports = {};
|
|
30
30
|
__export(node_version_exports, {
|
|
31
|
+
BUN_VERSIONS: () => BUN_VERSIONS,
|
|
31
32
|
NODE_VERSIONS: () => NODE_VERSIONS,
|
|
32
33
|
getAvailableNodeVersions: () => getAvailableNodeVersions,
|
|
33
34
|
getDiscontinuedNodeVersions: () => getDiscontinuedNodeVersions,
|
|
34
35
|
getLatestNodeVersion: () => getLatestNodeVersion,
|
|
35
36
|
getNodeVersionByMajor: () => getNodeVersionByMajor,
|
|
36
|
-
|
|
37
|
+
getSupportedBunVersion: () => getSupportedBunVersion,
|
|
38
|
+
getSupportedNodeVersion: () => getSupportedNodeVersion,
|
|
39
|
+
isBunVersion: () => isBunVersion
|
|
37
40
|
});
|
|
38
41
|
module.exports = __toCommonJS(node_version_exports);
|
|
39
42
|
var import_fs = require("fs");
|
|
@@ -89,6 +92,13 @@ const NODE_VERSIONS = [
|
|
|
89
92
|
discontinueDate: /* @__PURE__ */ new Date("2020-01-06")
|
|
90
93
|
})
|
|
91
94
|
];
|
|
95
|
+
const BUN_VERSIONS = [
|
|
96
|
+
new import_types.BunVersion({
|
|
97
|
+
major: 1,
|
|
98
|
+
range: "1.x",
|
|
99
|
+
runtime: "bun1.x"
|
|
100
|
+
})
|
|
101
|
+
];
|
|
92
102
|
function getNodeVersionByMajor(major) {
|
|
93
103
|
return NODE_VERSIONS.find((v) => v.major === major);
|
|
94
104
|
}
|
|
@@ -175,12 +185,36 @@ async function getSupportedNodeVersion(engineRange, isAuto = false, availableVer
|
|
|
175
185
|
}
|
|
176
186
|
return selection;
|
|
177
187
|
}
|
|
188
|
+
function getSupportedBunVersion(engineRange) {
|
|
189
|
+
if ((0, import_semver.validRange)(engineRange)) {
|
|
190
|
+
const selected = BUN_VERSIONS.find((version) => {
|
|
191
|
+
return (0, import_semver.intersects)(version.range, engineRange);
|
|
192
|
+
});
|
|
193
|
+
if (selected) {
|
|
194
|
+
return new import_types.BunVersion({
|
|
195
|
+
major: selected.major,
|
|
196
|
+
range: selected.range,
|
|
197
|
+
runtime: selected.runtime
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
throw new import_errors.NowBuildError({
|
|
202
|
+
message: `Found invalid Bun Version: "${engineRange}".`,
|
|
203
|
+
code: "BUILD_UTILS_BUN_VERSION_INVALID"
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
function isBunVersion(version) {
|
|
207
|
+
return version.runtime.startsWith("bun");
|
|
208
|
+
}
|
|
178
209
|
// Annotate the CommonJS export names for ESM import in node:
|
|
179
210
|
0 && (module.exports = {
|
|
211
|
+
BUN_VERSIONS,
|
|
180
212
|
NODE_VERSIONS,
|
|
181
213
|
getAvailableNodeVersions,
|
|
182
214
|
getDiscontinuedNodeVersions,
|
|
183
215
|
getLatestNodeVersion,
|
|
184
216
|
getNodeVersionByMajor,
|
|
185
|
-
|
|
217
|
+
getSupportedBunVersion,
|
|
218
|
+
getSupportedNodeVersion,
|
|
219
|
+
isBunVersion
|
|
186
220
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { SpawnOptions } from 'child_process';
|
|
3
|
-
import { Meta, PackageJson, NodeVersion, Config } from '../types';
|
|
3
|
+
import { Meta, PackageJson, NodeVersion, Config, BunVersion } from '../types';
|
|
4
4
|
export type CliType = 'yarn' | 'npm' | 'pnpm' | 'bun' | 'vlt';
|
|
5
5
|
export interface ScanParentDirsResult {
|
|
6
6
|
/**
|
|
@@ -85,23 +85,22 @@ export declare function getNodeBinPath({ cwd, }: {
|
|
|
85
85
|
export declare function getNodeBinPaths({ start, base, }: TraverseUpDirectoriesProps): string[];
|
|
86
86
|
export declare function runShellScript(fsPath: string, args?: string[], spawnOpts?: SpawnOptions): Promise<boolean>;
|
|
87
87
|
export declare function getSpawnOptions(meta: Meta, nodeVersion: NodeVersion): SpawnOptions;
|
|
88
|
-
export declare function getNodeVersion(destPath: string, fallbackVersion?: string | undefined, config?: Config, meta?: Meta, availableVersions?: number[]): Promise<NodeVersion>;
|
|
88
|
+
export declare function getNodeVersion(destPath: string, fallbackVersion?: string | undefined, config?: Config, meta?: Meta, availableVersions?: number[]): Promise<NodeVersion | BunVersion>;
|
|
89
89
|
export declare function scanParentDirs(destPath: string, readPackageJson?: boolean, base?: string): Promise<ScanParentDirsResult>;
|
|
90
90
|
export declare function turboVersionSpecifierSupportsCorepack(turboVersionSpecifier: string): boolean;
|
|
91
91
|
export declare function usingCorepack(env: {
|
|
92
92
|
[x: string]: string | undefined;
|
|
93
93
|
}, packageJsonPackageManager: string | undefined, turboSupportsCorepackHome: boolean | undefined): boolean;
|
|
94
94
|
export declare function walkParentDirs({ base, start, filename, }: WalkParentDirsProps): Promise<string | null>;
|
|
95
|
-
export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta,
|
|
95
|
+
export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta, projectCreatedAt?: number): Promise<boolean>;
|
|
96
96
|
/**
|
|
97
97
|
* Prepares the input environment based on the used package manager and lockfile
|
|
98
98
|
* versions.
|
|
99
99
|
*/
|
|
100
|
-
export declare function getEnvForPackageManager({ cliType, lockfileVersion, packageJsonPackageManager,
|
|
100
|
+
export declare function getEnvForPackageManager({ cliType, lockfileVersion, packageJsonPackageManager, env, packageJsonEngines, turboSupportsCorepackHome, projectCreatedAt, }: {
|
|
101
101
|
cliType: CliType;
|
|
102
102
|
lockfileVersion: number | undefined;
|
|
103
103
|
packageJsonPackageManager?: string | undefined;
|
|
104
|
-
nodeVersion: NodeVersion | undefined;
|
|
105
104
|
env: {
|
|
106
105
|
[x: string]: string | undefined;
|
|
107
106
|
};
|
|
@@ -120,7 +119,6 @@ export declare function getPathOverrideForPackageManager({ cliType, lockfileVers
|
|
|
120
119
|
cliType: CliType;
|
|
121
120
|
lockfileVersion: number | undefined;
|
|
122
121
|
corepackPackageManager: string | undefined;
|
|
123
|
-
nodeVersion: NodeVersion | undefined;
|
|
124
122
|
corepackEnabled?: boolean;
|
|
125
123
|
packageJsonEngines?: PackageJson.Engines;
|
|
126
124
|
projectCreatedAt?: number;
|
|
@@ -160,10 +158,9 @@ export declare function detectPackageManager(cliType: CliType, lockfileVersion:
|
|
|
160
158
|
* Note: Make sure it doesn't contain any `console.log` calls.
|
|
161
159
|
* @deprecated use `getEnvForPackageManager` instead
|
|
162
160
|
*/
|
|
163
|
-
export declare function getPathForPackageManager({ cliType, lockfileVersion,
|
|
161
|
+
export declare function getPathForPackageManager({ cliType, lockfileVersion, env, }: {
|
|
164
162
|
cliType: CliType;
|
|
165
163
|
lockfileVersion: number | undefined;
|
|
166
|
-
nodeVersion: NodeVersion | undefined;
|
|
167
164
|
env: {
|
|
168
165
|
[x: string]: string | undefined;
|
|
169
166
|
};
|
|
@@ -187,10 +184,9 @@ export declare function getPathForPackageManager({ cliType, lockfileVersion, nod
|
|
|
187
184
|
*/
|
|
188
185
|
yarnNodeLinker: string | undefined;
|
|
189
186
|
};
|
|
190
|
-
export declare function runCustomInstallCommand({ destPath, installCommand,
|
|
187
|
+
export declare function runCustomInstallCommand({ destPath, installCommand, spawnOpts, projectCreatedAt, }: {
|
|
191
188
|
destPath: string;
|
|
192
189
|
installCommand: string;
|
|
193
|
-
nodeVersion: NodeVersion;
|
|
194
190
|
spawnOpts?: SpawnOptions;
|
|
195
191
|
projectCreatedAt?: number;
|
|
196
192
|
}): Promise<void>;
|
|
@@ -182,6 +182,9 @@ function getSpawnOptions(meta, nodeVersion) {
|
|
|
182
182
|
const opts = {
|
|
183
183
|
env: (0, import_clone_env.cloneEnv)(process.env)
|
|
184
184
|
};
|
|
185
|
+
if ((0, import_node_version.isBunVersion)(nodeVersion)) {
|
|
186
|
+
return opts;
|
|
187
|
+
}
|
|
185
188
|
if (!meta.isDev) {
|
|
186
189
|
let found = false;
|
|
187
190
|
const oldPath = opts.env.PATH || process.env.PATH || "";
|
|
@@ -200,6 +203,9 @@ function getSpawnOptions(meta, nodeVersion) {
|
|
|
200
203
|
return opts;
|
|
201
204
|
}
|
|
202
205
|
async function getNodeVersion(destPath, fallbackVersion = process.env.VERCEL_PROJECT_SETTINGS_NODE_VERSION, config = {}, meta = {}, availableVersions = (0, import_node_version.getAvailableNodeVersions)()) {
|
|
206
|
+
if (config.bunVersion) {
|
|
207
|
+
return (0, import_node_version.getSupportedBunVersion)(config.bunVersion);
|
|
208
|
+
}
|
|
203
209
|
const latestVersion = (0, import_node_version.getLatestNodeVersion)(availableVersions);
|
|
204
210
|
if (meta.isDev) {
|
|
205
211
|
latestVersion.runtime = "nodejs";
|
|
@@ -520,7 +526,7 @@ function checkIfAlreadyInstalled(runNpmInstallSet, packageJsonPath) {
|
|
|
520
526
|
return { alreadyInstalled, runNpmInstallSet: initializedRunNpmInstallSet };
|
|
521
527
|
}
|
|
522
528
|
const runNpmInstallSema = new import_async_sema.default(1);
|
|
523
|
-
async function runNpmInstall(destPath, args = [], spawnOpts, meta,
|
|
529
|
+
async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreatedAt) {
|
|
524
530
|
if (meta?.isDev) {
|
|
525
531
|
(0, import_debug.default)("Skipping dependency installation because dev mode is enabled");
|
|
526
532
|
return false;
|
|
@@ -573,7 +579,6 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion,
|
|
|
573
579
|
cliType,
|
|
574
580
|
lockfileVersion,
|
|
575
581
|
packageJsonPackageManager,
|
|
576
|
-
nodeVersion,
|
|
577
582
|
env,
|
|
578
583
|
packageJsonEngines: packageJson?.engines,
|
|
579
584
|
turboSupportsCorepackHome,
|
|
@@ -600,7 +605,6 @@ function getEnvForPackageManager({
|
|
|
600
605
|
cliType,
|
|
601
606
|
lockfileVersion,
|
|
602
607
|
packageJsonPackageManager,
|
|
603
|
-
nodeVersion,
|
|
604
608
|
env,
|
|
605
609
|
packageJsonEngines,
|
|
606
610
|
turboSupportsCorepackHome,
|
|
@@ -619,7 +623,6 @@ function getEnvForPackageManager({
|
|
|
619
623
|
cliType,
|
|
620
624
|
lockfileVersion,
|
|
621
625
|
corepackPackageManager: packageJsonPackageManager,
|
|
622
|
-
nodeVersion,
|
|
623
626
|
corepackEnabled,
|
|
624
627
|
packageJsonEngines,
|
|
625
628
|
projectCreatedAt
|
|
@@ -913,15 +916,13 @@ function detectPackageManager(cliType, lockfileVersion, projectCreatedAt) {
|
|
|
913
916
|
function getPathForPackageManager({
|
|
914
917
|
cliType,
|
|
915
918
|
lockfileVersion,
|
|
916
|
-
nodeVersion,
|
|
917
919
|
env
|
|
918
920
|
}) {
|
|
919
921
|
const corepackEnabled = env.ENABLE_EXPERIMENTAL_COREPACK === "1";
|
|
920
922
|
let overrides = getPathOverrideForPackageManager({
|
|
921
923
|
cliType,
|
|
922
924
|
lockfileVersion,
|
|
923
|
-
corepackPackageManager: void 0
|
|
924
|
-
nodeVersion
|
|
925
|
+
corepackPackageManager: void 0
|
|
925
926
|
});
|
|
926
927
|
if (corepackEnabled) {
|
|
927
928
|
overrides = NO_OVERRIDE;
|
|
@@ -947,7 +948,6 @@ function getPathForPackageManager({
|
|
|
947
948
|
async function runCustomInstallCommand({
|
|
948
949
|
destPath,
|
|
949
950
|
installCommand,
|
|
950
|
-
nodeVersion,
|
|
951
951
|
spawnOpts,
|
|
952
952
|
projectCreatedAt
|
|
953
953
|
}) {
|
|
@@ -963,7 +963,6 @@ async function runCustomInstallCommand({
|
|
|
963
963
|
cliType,
|
|
964
964
|
lockfileVersion,
|
|
965
965
|
packageJsonPackageManager,
|
|
966
|
-
nodeVersion,
|
|
967
966
|
env: spawnOpts?.env || {},
|
|
968
967
|
packageJsonEngines: packageJson?.engines,
|
|
969
968
|
turboSupportsCorepackHome,
|
|
@@ -1000,7 +999,6 @@ async function runPackageJsonScript(destPath, scriptNames, spawnOpts, projectCre
|
|
|
1000
999
|
cliType,
|
|
1001
1000
|
lockfileVersion,
|
|
1002
1001
|
packageJsonPackageManager,
|
|
1003
|
-
nodeVersion: void 0,
|
|
1004
1002
|
env: (0, import_clone_env.cloneEnv)(process.env, spawnOpts?.env),
|
|
1005
1003
|
packageJsonEngines: packageJson?.engines,
|
|
1006
1004
|
turboSupportsCorepackHome,
|
|
@@ -9,7 +9,7 @@ import getWriteableDirectory from './fs/get-writable-directory';
|
|
|
9
9
|
import glob, { GlobOptions } from './fs/glob';
|
|
10
10
|
import rename from './fs/rename';
|
|
11
11
|
import { spawnAsync, execCommand, spawnCommand, walkParentDirs, getScriptName, installDependencies, runPackageJsonScript, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, detectPackageManager, getSpawnOptions, getNodeBinPath, getNodeBinPaths, scanParentDirs, traverseUpDirectories } from './fs/run-user-scripts';
|
|
12
|
-
import { getLatestNodeVersion, getDiscontinuedNodeVersions, getSupportedNodeVersion } from './fs/node-version';
|
|
12
|
+
import { getLatestNodeVersion, getDiscontinuedNodeVersions, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion } from './fs/node-version';
|
|
13
13
|
import streamToBuffer, { streamToBufferChunks } from './fs/stream-to-buffer';
|
|
14
14
|
import debug from './debug';
|
|
15
15
|
import getIgnoreFilter from './get-ignore-filter';
|
|
@@ -18,7 +18,7 @@ import { getPrefixedEnvVars } from './get-prefixed-env-vars';
|
|
|
18
18
|
import { cloneEnv } from './clone-env';
|
|
19
19
|
import { hardLinkDir } from './hard-link-dir';
|
|
20
20
|
import { validateNpmrc } from './validate-npmrc';
|
|
21
|
-
export { FileBlob, FileFsRef, FileRef, Lambda, NodejsLambda, createLambda, Prerender, download, downloadFile, DownloadedFiles, getWriteableDirectory, glob, GlobOptions, rename, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, getNodeBinPaths, getSupportedNodeVersion, detectPackageManager, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, getLatestNodeVersion, getDiscontinuedNodeVersions, getSpawnOptions, getPlatformEnv, getPrefixedEnvVars, streamToBuffer, streamToBufferChunks, debug, isSymbolicLink, isDirectory, getLambdaOptionsFromFunction, scanParentDirs, getIgnoreFilter, cloneEnv, hardLinkDir, traverseUpDirectories, validateNpmrc, };
|
|
21
|
+
export { FileBlob, FileFsRef, FileRef, Lambda, NodejsLambda, createLambda, Prerender, download, downloadFile, DownloadedFiles, getWriteableDirectory, glob, GlobOptions, rename, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, getNodeBinPaths, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion, detectPackageManager, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, getLatestNodeVersion, getDiscontinuedNodeVersions, getSpawnOptions, getPlatformEnv, getPrefixedEnvVars, streamToBuffer, streamToBufferChunks, debug, isSymbolicLink, isDirectory, getLambdaOptionsFromFunction, scanParentDirs, getIgnoreFilter, cloneEnv, hardLinkDir, traverseUpDirectories, validateNpmrc, };
|
|
22
22
|
export { EdgeFunction } from './edge-function';
|
|
23
23
|
export { readConfigFile } from './fs/read-config-file';
|
|
24
24
|
export { normalizePath } from './fs/normalize-path';
|
|
@@ -21819,6 +21819,7 @@ var src_exports = {};
|
|
|
21819
21819
|
__export(src_exports, {
|
|
21820
21820
|
BUILDER_COMPILE_STEP: () => BUILDER_COMPILE_STEP,
|
|
21821
21821
|
BUILDER_INSTALLER_STEP: () => BUILDER_INSTALLER_STEP,
|
|
21822
|
+
BunVersion: () => BunVersion,
|
|
21822
21823
|
EdgeFunction: () => EdgeFunction,
|
|
21823
21824
|
FileBlob: () => FileBlob,
|
|
21824
21825
|
FileFsRef: () => file_fs_ref_default,
|
|
@@ -21859,11 +21860,13 @@ __export(src_exports, {
|
|
|
21859
21860
|
getProvidedRuntime: () => getProvidedRuntime,
|
|
21860
21861
|
getScriptName: () => getScriptName,
|
|
21861
21862
|
getSpawnOptions: () => getSpawnOptions,
|
|
21863
|
+
getSupportedBunVersion: () => getSupportedBunVersion,
|
|
21862
21864
|
getSupportedNodeVersion: () => getSupportedNodeVersion,
|
|
21863
21865
|
getWriteableDirectory: () => getWritableDirectory,
|
|
21864
21866
|
glob: () => glob,
|
|
21865
21867
|
hardLinkDir: () => hardLinkDir,
|
|
21866
21868
|
installDependencies: () => installDependencies,
|
|
21869
|
+
isBunVersion: () => isBunVersion,
|
|
21867
21870
|
isDirectory: () => isDirectory,
|
|
21868
21871
|
isSymbolicLink: () => isSymbolicLink,
|
|
21869
21872
|
normalizePath: () => normalizePath,
|
|
@@ -22948,6 +22951,8 @@ var Version = class {
|
|
|
22948
22951
|
};
|
|
22949
22952
|
var NodeVersion = class extends Version {
|
|
22950
22953
|
};
|
|
22954
|
+
var BunVersion = class extends Version {
|
|
22955
|
+
};
|
|
22951
22956
|
|
|
22952
22957
|
// src/fs/node-version.ts
|
|
22953
22958
|
var NODE_VERSIONS = [
|
|
@@ -22998,6 +23003,13 @@ var NODE_VERSIONS = [
|
|
|
22998
23003
|
discontinueDate: /* @__PURE__ */ new Date("2020-01-06")
|
|
22999
23004
|
})
|
|
23000
23005
|
];
|
|
23006
|
+
var BUN_VERSIONS = [
|
|
23007
|
+
new BunVersion({
|
|
23008
|
+
major: 1,
|
|
23009
|
+
range: "1.x",
|
|
23010
|
+
runtime: "bun1.x"
|
|
23011
|
+
})
|
|
23012
|
+
];
|
|
23001
23013
|
function getOptions() {
|
|
23002
23014
|
return NODE_VERSIONS;
|
|
23003
23015
|
}
|
|
@@ -23081,6 +23093,27 @@ async function getSupportedNodeVersion(engineRange, isAuto = false, availableVer
|
|
|
23081
23093
|
}
|
|
23082
23094
|
return selection;
|
|
23083
23095
|
}
|
|
23096
|
+
function getSupportedBunVersion(engineRange) {
|
|
23097
|
+
if ((0, import_semver.validRange)(engineRange)) {
|
|
23098
|
+
const selected = BUN_VERSIONS.find((version) => {
|
|
23099
|
+
return (0, import_semver.intersects)(version.range, engineRange);
|
|
23100
|
+
});
|
|
23101
|
+
if (selected) {
|
|
23102
|
+
return new BunVersion({
|
|
23103
|
+
major: selected.major,
|
|
23104
|
+
range: selected.range,
|
|
23105
|
+
runtime: selected.runtime
|
|
23106
|
+
});
|
|
23107
|
+
}
|
|
23108
|
+
}
|
|
23109
|
+
throw new NowBuildError({
|
|
23110
|
+
message: `Found invalid Bun Version: "${engineRange}".`,
|
|
23111
|
+
code: "BUILD_UTILS_BUN_VERSION_INVALID"
|
|
23112
|
+
});
|
|
23113
|
+
}
|
|
23114
|
+
function isBunVersion(version) {
|
|
23115
|
+
return version.runtime.startsWith("bun");
|
|
23116
|
+
}
|
|
23084
23117
|
|
|
23085
23118
|
// src/fs/read-config-file.ts
|
|
23086
23119
|
var import_js_yaml = __toESM(require_js_yaml2());
|
|
@@ -23257,6 +23290,9 @@ function getSpawnOptions(meta, nodeVersion) {
|
|
|
23257
23290
|
const opts = {
|
|
23258
23291
|
env: cloneEnv(process.env)
|
|
23259
23292
|
};
|
|
23293
|
+
if (isBunVersion(nodeVersion)) {
|
|
23294
|
+
return opts;
|
|
23295
|
+
}
|
|
23260
23296
|
if (!meta.isDev) {
|
|
23261
23297
|
let found = false;
|
|
23262
23298
|
const oldPath = opts.env.PATH || process.env.PATH || "";
|
|
@@ -23275,6 +23311,9 @@ function getSpawnOptions(meta, nodeVersion) {
|
|
|
23275
23311
|
return opts;
|
|
23276
23312
|
}
|
|
23277
23313
|
async function getNodeVersion(destPath, fallbackVersion = process.env.VERCEL_PROJECT_SETTINGS_NODE_VERSION, config = {}, meta = {}, availableVersions = getAvailableNodeVersions()) {
|
|
23314
|
+
if (config.bunVersion) {
|
|
23315
|
+
return getSupportedBunVersion(config.bunVersion);
|
|
23316
|
+
}
|
|
23278
23317
|
const latestVersion = getLatestNodeVersion(availableVersions);
|
|
23279
23318
|
if (meta.isDev) {
|
|
23280
23319
|
latestVersion.runtime = "nodejs";
|
|
@@ -23595,7 +23634,7 @@ function checkIfAlreadyInstalled(runNpmInstallSet, packageJsonPath) {
|
|
|
23595
23634
|
return { alreadyInstalled, runNpmInstallSet: initializedRunNpmInstallSet };
|
|
23596
23635
|
}
|
|
23597
23636
|
var runNpmInstallSema = new import_async_sema4.default(1);
|
|
23598
|
-
async function runNpmInstall(destPath, args = [], spawnOpts, meta,
|
|
23637
|
+
async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreatedAt) {
|
|
23599
23638
|
if (meta?.isDev) {
|
|
23600
23639
|
debug("Skipping dependency installation because dev mode is enabled");
|
|
23601
23640
|
return false;
|
|
@@ -23648,7 +23687,6 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion,
|
|
|
23648
23687
|
cliType,
|
|
23649
23688
|
lockfileVersion,
|
|
23650
23689
|
packageJsonPackageManager,
|
|
23651
|
-
nodeVersion,
|
|
23652
23690
|
env,
|
|
23653
23691
|
packageJsonEngines: packageJson?.engines,
|
|
23654
23692
|
turboSupportsCorepackHome,
|
|
@@ -23675,7 +23713,6 @@ function getEnvForPackageManager({
|
|
|
23675
23713
|
cliType,
|
|
23676
23714
|
lockfileVersion,
|
|
23677
23715
|
packageJsonPackageManager,
|
|
23678
|
-
nodeVersion,
|
|
23679
23716
|
env,
|
|
23680
23717
|
packageJsonEngines,
|
|
23681
23718
|
turboSupportsCorepackHome,
|
|
@@ -23694,7 +23731,6 @@ function getEnvForPackageManager({
|
|
|
23694
23731
|
cliType,
|
|
23695
23732
|
lockfileVersion,
|
|
23696
23733
|
corepackPackageManager: packageJsonPackageManager,
|
|
23697
|
-
nodeVersion,
|
|
23698
23734
|
corepackEnabled,
|
|
23699
23735
|
packageJsonEngines,
|
|
23700
23736
|
projectCreatedAt
|
|
@@ -23988,15 +24024,13 @@ function detectPackageManager(cliType, lockfileVersion, projectCreatedAt) {
|
|
|
23988
24024
|
function getPathForPackageManager({
|
|
23989
24025
|
cliType,
|
|
23990
24026
|
lockfileVersion,
|
|
23991
|
-
nodeVersion,
|
|
23992
24027
|
env
|
|
23993
24028
|
}) {
|
|
23994
24029
|
const corepackEnabled = env.ENABLE_EXPERIMENTAL_COREPACK === "1";
|
|
23995
24030
|
let overrides = getPathOverrideForPackageManager({
|
|
23996
24031
|
cliType,
|
|
23997
24032
|
lockfileVersion,
|
|
23998
|
-
corepackPackageManager: void 0
|
|
23999
|
-
nodeVersion
|
|
24033
|
+
corepackPackageManager: void 0
|
|
24000
24034
|
});
|
|
24001
24035
|
if (corepackEnabled) {
|
|
24002
24036
|
overrides = NO_OVERRIDE;
|
|
@@ -24022,7 +24056,6 @@ function getPathForPackageManager({
|
|
|
24022
24056
|
async function runCustomInstallCommand({
|
|
24023
24057
|
destPath,
|
|
24024
24058
|
installCommand,
|
|
24025
|
-
nodeVersion,
|
|
24026
24059
|
spawnOpts,
|
|
24027
24060
|
projectCreatedAt
|
|
24028
24061
|
}) {
|
|
@@ -24038,7 +24071,6 @@ async function runCustomInstallCommand({
|
|
|
24038
24071
|
cliType,
|
|
24039
24072
|
lockfileVersion,
|
|
24040
24073
|
packageJsonPackageManager,
|
|
24041
|
-
nodeVersion,
|
|
24042
24074
|
env: spawnOpts?.env || {},
|
|
24043
24075
|
packageJsonEngines: packageJson?.engines,
|
|
24044
24076
|
turboSupportsCorepackHome,
|
|
@@ -24075,7 +24107,6 @@ async function runPackageJsonScript(destPath, scriptNames, spawnOpts, projectCre
|
|
|
24075
24107
|
cliType,
|
|
24076
24108
|
lockfileVersion,
|
|
24077
24109
|
packageJsonPackageManager,
|
|
24078
|
-
nodeVersion: void 0,
|
|
24079
24110
|
env: cloneEnv(process.env, spawnOpts?.env),
|
|
24080
24111
|
packageJsonEngines: packageJson?.engines,
|
|
24081
24112
|
turboSupportsCorepackHome,
|
|
@@ -24734,6 +24765,7 @@ ${entrypointsForMessage}`
|
|
|
24734
24765
|
0 && (module.exports = {
|
|
24735
24766
|
BUILDER_COMPILE_STEP,
|
|
24736
24767
|
BUILDER_INSTALLER_STEP,
|
|
24768
|
+
BunVersion,
|
|
24737
24769
|
EdgeFunction,
|
|
24738
24770
|
FileBlob,
|
|
24739
24771
|
FileFsRef,
|
|
@@ -24774,11 +24806,13 @@ ${entrypointsForMessage}`
|
|
|
24774
24806
|
getProvidedRuntime,
|
|
24775
24807
|
getScriptName,
|
|
24776
24808
|
getSpawnOptions,
|
|
24809
|
+
getSupportedBunVersion,
|
|
24777
24810
|
getSupportedNodeVersion,
|
|
24778
24811
|
getWriteableDirectory,
|
|
24779
24812
|
glob,
|
|
24780
24813
|
hardLinkDir,
|
|
24781
24814
|
installDependencies,
|
|
24815
|
+
isBunVersion,
|
|
24782
24816
|
isDirectory,
|
|
24783
24817
|
isSymbolicLink,
|
|
24784
24818
|
normalizePath,
|
|
@@ -22,6 +22,7 @@ export interface Files {
|
|
|
22
22
|
[filePath: string]: File;
|
|
23
23
|
}
|
|
24
24
|
export interface Config {
|
|
25
|
+
bunVersion?: string;
|
|
25
26
|
maxLambdaSize?: string;
|
|
26
27
|
includeFiles?: string | string[];
|
|
27
28
|
excludeFiles?: string | string[];
|
|
@@ -318,6 +319,8 @@ export declare class Version implements BaseVersion {
|
|
|
318
319
|
}
|
|
319
320
|
export declare class NodeVersion extends Version {
|
|
320
321
|
}
|
|
322
|
+
export declare class BunVersion extends Version {
|
|
323
|
+
}
|
|
321
324
|
export interface Builder {
|
|
322
325
|
use: string;
|
|
323
326
|
src?: string;
|
|
@@ -18,6 +18,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var types_exports = {};
|
|
20
20
|
__export(types_exports, {
|
|
21
|
+
BunVersion: () => BunVersion,
|
|
21
22
|
NodeVersion: () => NodeVersion,
|
|
22
23
|
Version: () => Version
|
|
23
24
|
});
|
|
@@ -44,8 +45,11 @@ class Version {
|
|
|
44
45
|
}
|
|
45
46
|
class NodeVersion extends Version {
|
|
46
47
|
}
|
|
48
|
+
class BunVersion extends Version {
|
|
49
|
+
}
|
|
47
50
|
// Annotate the CommonJS export names for ESM import in node:
|
|
48
51
|
0 && (module.exports = {
|
|
52
|
+
BunVersion,
|
|
49
53
|
NodeVersion,
|
|
50
54
|
Version
|
|
51
55
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"vercel": "./dist/vc.js"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@vercel/build-utils": "12.
|
|
7
|
+
"@vercel/build-utils": "12.2.0",
|
|
8
8
|
"@vercel/detect-agent": "1.0.0",
|
|
9
9
|
"@vercel/python": "5.0.10"
|
|
10
10
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"vitest-run": "vitest --config ./vitest.config.mts",
|
|
38
38
|
"vitest-unit": "jest test/unit/ --listTests"
|
|
39
39
|
},
|
|
40
|
-
"version": "48.
|
|
40
|
+
"version": "48.6.0"
|
|
41
41
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/LICENSE
RENAMED
|
File without changes
|
{vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/build.mjs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/build-utils/lambda.js
RENAMED
|
File without changes
|
|
File without changes
|
{vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/detect-agent/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/LICENSE
RENAMED
|
File without changes
|
{vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/dist/index.js
RENAMED
|
File without changes
|
{vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/package.json
RENAMED
|
File without changes
|
{vercel_cli-48.5.0 → vercel_cli-48.6.0}/vercel_cli/vendor/node_modules/@vercel/python/vc_init.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|