@vercel/node 5.5.3 → 5.5.5
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 +8 -10
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -70278,18 +70278,17 @@ async function downloadInstallAndBundle({
|
|
|
70278
70278
|
config,
|
|
70279
70279
|
meta
|
|
70280
70280
|
);
|
|
70281
|
-
const spawnOpts = (0, import_build_utils3.getSpawnOptions)(meta, nodeVersion);
|
|
70282
70281
|
const {
|
|
70283
70282
|
cliType,
|
|
70284
70283
|
lockfileVersion,
|
|
70285
70284
|
packageJsonPackageManager,
|
|
70286
70285
|
turboSupportsCorepackHome
|
|
70287
70286
|
} = await (0, import_build_utils3.scanParentDirs)(entrypointFsDirname, true);
|
|
70288
|
-
|
|
70287
|
+
const spawnEnv = (0, import_build_utils3.getEnvForPackageManager)({
|
|
70289
70288
|
cliType,
|
|
70290
70289
|
lockfileVersion,
|
|
70291
70290
|
packageJsonPackageManager,
|
|
70292
|
-
env:
|
|
70291
|
+
env: process.env,
|
|
70293
70292
|
turboSupportsCorepackHome,
|
|
70294
70293
|
projectCreatedAt: config.projectSettings?.createdAt
|
|
70295
70294
|
});
|
|
@@ -70298,7 +70297,7 @@ async function downloadInstallAndBundle({
|
|
|
70298
70297
|
if (installCommand.trim()) {
|
|
70299
70298
|
console.log(`Running "install" command: \`${installCommand}\`...`);
|
|
70300
70299
|
await (0, import_build_utils3.execCommand)(installCommand, {
|
|
70301
|
-
|
|
70300
|
+
env: spawnEnv,
|
|
70302
70301
|
cwd: entrypointFsDirname
|
|
70303
70302
|
});
|
|
70304
70303
|
} else {
|
|
@@ -70308,13 +70307,13 @@ async function downloadInstallAndBundle({
|
|
|
70308
70307
|
await (0, import_build_utils3.runNpmInstall)(
|
|
70309
70308
|
entrypointFsDirname,
|
|
70310
70309
|
[],
|
|
70311
|
-
|
|
70310
|
+
{ env: spawnEnv },
|
|
70312
70311
|
meta,
|
|
70313
70312
|
config.projectSettings?.createdAt
|
|
70314
70313
|
);
|
|
70315
70314
|
}
|
|
70316
70315
|
const entrypointPath = downloadedFiles[entrypoint].fsPath;
|
|
70317
|
-
return { entrypointPath, entrypointFsDirname, nodeVersion,
|
|
70316
|
+
return { entrypointPath, entrypointFsDirname, nodeVersion, spawnEnv };
|
|
70318
70317
|
}
|
|
70319
70318
|
function renameTStoJS(path) {
|
|
70320
70319
|
if (path.endsWith(".ts")) {
|
|
@@ -70552,7 +70551,7 @@ var build = async ({
|
|
|
70552
70551
|
entrypointPath: _entrypointPath,
|
|
70553
70552
|
entrypointFsDirname,
|
|
70554
70553
|
nodeVersion,
|
|
70555
|
-
|
|
70554
|
+
spawnEnv
|
|
70556
70555
|
} = await downloadInstallAndBundle({
|
|
70557
70556
|
files,
|
|
70558
70557
|
entrypoint,
|
|
@@ -70565,12 +70564,11 @@ var build = async ({
|
|
|
70565
70564
|
const projectBuildCommand = config.projectSettings?.buildCommand;
|
|
70566
70565
|
if (projectBuildCommand && considerBuildCommand) {
|
|
70567
70566
|
await (0, import_build_utils3.execCommand)(projectBuildCommand, {
|
|
70568
|
-
...spawnOpts,
|
|
70569
70567
|
// Yarn v2 PnP mode may be activated, so force
|
|
70570
70568
|
// "node-modules" linker style
|
|
70571
70569
|
env: {
|
|
70572
70570
|
YARN_NODE_LINKER: "node-modules",
|
|
70573
|
-
...
|
|
70571
|
+
...spawnEnv
|
|
70574
70572
|
},
|
|
70575
70573
|
cwd: workPath
|
|
70576
70574
|
});
|
|
@@ -70579,7 +70577,7 @@ var build = async ({
|
|
|
70579
70577
|
await (0, import_build_utils3.runPackageJsonScript)(
|
|
70580
70578
|
entrypointFsDirname,
|
|
70581
70579
|
possibleScripts,
|
|
70582
|
-
|
|
70580
|
+
{ env: spawnEnv },
|
|
70583
70581
|
config.projectSettings?.createdAt
|
|
70584
70582
|
);
|
|
70585
70583
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@edge-runtime/primitives": "4.1.0",
|
|
18
18
|
"@edge-runtime/vm": "3.2.0",
|
|
19
19
|
"@types/node": "16.18.11",
|
|
20
|
-
"@vercel/build-utils": "
|
|
20
|
+
"@vercel/build-utils": "13.0.0",
|
|
21
21
|
"@vercel/error-utils": "2.0.3",
|
|
22
22
|
"@vercel/nft": "0.30.1",
|
|
23
23
|
"@vercel/static-config": "3.1.2",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"tree-kill": "1.2.2",
|
|
60
60
|
"vite": "^5.1.6",
|
|
61
61
|
"vitest": "^2.0.1",
|
|
62
|
-
"@vercel/functions": "3.
|
|
62
|
+
"@vercel/functions": "3.3.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "node build.mjs",
|