@vercel/node 5.5.18 → 5.5.20
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 +9 -11
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -70428,24 +70428,23 @@ async function downloadInstallAndBundle({
|
|
|
70428
70428
|
}) {
|
|
70429
70429
|
const downloadedFiles = await (0, import_build_utils3.download)(files, workPath, meta);
|
|
70430
70430
|
const entrypointFsDirname = (0, import_path3.join)(workPath, (0, import_path3.dirname)(entrypoint));
|
|
70431
|
-
const nodeVersion = await (0, import_build_utils3.
|
|
70431
|
+
const nodeVersion = await (0, import_build_utils3.getRuntimeNodeVersion)(
|
|
70432
70432
|
entrypointFsDirname,
|
|
70433
70433
|
void 0,
|
|
70434
70434
|
config,
|
|
70435
70435
|
meta
|
|
70436
70436
|
);
|
|
70437
|
-
const spawnOpts = (0, import_build_utils3.getSpawnOptions)(meta, nodeVersion);
|
|
70438
70437
|
const {
|
|
70439
70438
|
cliType,
|
|
70440
70439
|
lockfileVersion,
|
|
70441
70440
|
packageJsonPackageManager,
|
|
70442
70441
|
turboSupportsCorepackHome
|
|
70443
70442
|
} = await (0, import_build_utils3.scanParentDirs)(entrypointFsDirname, true);
|
|
70444
|
-
|
|
70443
|
+
const spawnEnv = (0, import_build_utils3.getEnvForPackageManager)({
|
|
70445
70444
|
cliType,
|
|
70446
70445
|
lockfileVersion,
|
|
70447
70446
|
packageJsonPackageManager,
|
|
70448
|
-
env:
|
|
70447
|
+
env: process.env,
|
|
70449
70448
|
turboSupportsCorepackHome,
|
|
70450
70449
|
projectCreatedAt: config.projectSettings?.createdAt
|
|
70451
70450
|
});
|
|
@@ -70454,7 +70453,7 @@ async function downloadInstallAndBundle({
|
|
|
70454
70453
|
if (installCommand.trim()) {
|
|
70455
70454
|
console.log(`Running "install" command: \`${installCommand}\`...`);
|
|
70456
70455
|
await (0, import_build_utils3.execCommand)(installCommand, {
|
|
70457
|
-
|
|
70456
|
+
env: spawnEnv,
|
|
70458
70457
|
cwd: entrypointFsDirname
|
|
70459
70458
|
});
|
|
70460
70459
|
} else {
|
|
@@ -70464,13 +70463,13 @@ async function downloadInstallAndBundle({
|
|
|
70464
70463
|
await (0, import_build_utils3.runNpmInstall)(
|
|
70465
70464
|
entrypointFsDirname,
|
|
70466
70465
|
[],
|
|
70467
|
-
|
|
70466
|
+
{ env: spawnEnv },
|
|
70468
70467
|
meta,
|
|
70469
70468
|
config.projectSettings?.createdAt
|
|
70470
70469
|
);
|
|
70471
70470
|
}
|
|
70472
70471
|
const entrypointPath = downloadedFiles[entrypoint].fsPath;
|
|
70473
|
-
return { entrypointPath, entrypointFsDirname, nodeVersion,
|
|
70472
|
+
return { entrypointPath, entrypointFsDirname, nodeVersion, spawnEnv };
|
|
70474
70473
|
}
|
|
70475
70474
|
function renameTStoJS(path) {
|
|
70476
70475
|
if (path.endsWith(".ts")) {
|
|
@@ -70711,7 +70710,7 @@ var build = async ({
|
|
|
70711
70710
|
entrypointPath: _entrypointPath,
|
|
70712
70711
|
entrypointFsDirname,
|
|
70713
70712
|
nodeVersion,
|
|
70714
|
-
|
|
70713
|
+
spawnEnv
|
|
70715
70714
|
} = await downloadInstallAndBundle({
|
|
70716
70715
|
files,
|
|
70717
70716
|
entrypoint,
|
|
@@ -70724,12 +70723,11 @@ var build = async ({
|
|
|
70724
70723
|
const projectBuildCommand = config.projectSettings?.buildCommand;
|
|
70725
70724
|
if (projectBuildCommand && considerBuildCommand) {
|
|
70726
70725
|
await (0, import_build_utils3.execCommand)(projectBuildCommand, {
|
|
70727
|
-
...spawnOpts,
|
|
70728
70726
|
// Yarn v2 PnP mode may be activated, so force
|
|
70729
70727
|
// "node-modules" linker style
|
|
70730
70728
|
env: {
|
|
70731
70729
|
YARN_NODE_LINKER: "node-modules",
|
|
70732
|
-
...
|
|
70730
|
+
...spawnEnv
|
|
70733
70731
|
},
|
|
70734
70732
|
cwd: workPath
|
|
70735
70733
|
});
|
|
@@ -70738,7 +70736,7 @@ var build = async ({
|
|
|
70738
70736
|
await (0, import_build_utils3.runPackageJsonScript)(
|
|
70739
70737
|
entrypointFsDirname,
|
|
70740
70738
|
possibleScripts,
|
|
70741
|
-
|
|
70739
|
+
{ env: spawnEnv },
|
|
70742
70740
|
config.projectSettings?.createdAt
|
|
70743
70741
|
);
|
|
70744
70742
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.20",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typescript": "4.9.5",
|
|
34
34
|
"typescript5": "npm:typescript@5.9.3",
|
|
35
35
|
"undici": "5.28.4",
|
|
36
|
-
"@vercel/build-utils": "13.2.
|
|
36
|
+
"@vercel/build-utils": "13.2.8",
|
|
37
37
|
"@vercel/error-utils": "2.0.3",
|
|
38
38
|
"@vercel/static-config": "3.1.2"
|
|
39
39
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"tree-kill": "1.2.2",
|
|
61
61
|
"vite": "^5.1.6",
|
|
62
62
|
"vitest": "^2.0.1",
|
|
63
|
-
"@vercel/functions": "3.3.
|
|
63
|
+
"@vercel/functions": "3.3.6"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "node build.mjs",
|