@vercel/node 5.3.12 → 5.3.13
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 +21 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -70024,13 +70024,27 @@ var build = async ({
|
|
|
70024
70024
|
config,
|
|
70025
70025
|
meta
|
|
70026
70026
|
});
|
|
70027
|
-
const
|
|
70028
|
-
|
|
70029
|
-
|
|
70030
|
-
|
|
70031
|
-
|
|
70032
|
-
|
|
70033
|
-
|
|
70027
|
+
const projectBuildCommand = config.projectSettings?.buildCommand;
|
|
70028
|
+
if (projectBuildCommand && considerBuildCommand) {
|
|
70029
|
+
await (0, import_build_utils3.execCommand)(projectBuildCommand, {
|
|
70030
|
+
...spawnOpts,
|
|
70031
|
+
// Yarn v2 PnP mode may be activated, so force
|
|
70032
|
+
// "node-modules" linker style
|
|
70033
|
+
env: {
|
|
70034
|
+
YARN_NODE_LINKER: "node-modules",
|
|
70035
|
+
...spawnOpts.env
|
|
70036
|
+
},
|
|
70037
|
+
cwd: workPath
|
|
70038
|
+
});
|
|
70039
|
+
} else {
|
|
70040
|
+
const possibleScripts = considerBuildCommand ? ["vercel-build", "now-build", "build"] : ["vercel-build", "now-build"];
|
|
70041
|
+
await (0, import_build_utils3.runPackageJsonScript)(
|
|
70042
|
+
entrypointFsDirname,
|
|
70043
|
+
possibleScripts,
|
|
70044
|
+
spawnOpts,
|
|
70045
|
+
config.projectSettings?.createdAt
|
|
70046
|
+
);
|
|
70047
|
+
}
|
|
70034
70048
|
const isMiddleware = config.middleware === true;
|
|
70035
70049
|
let isEdgeFunction = isMiddleware;
|
|
70036
70050
|
const project = new import_ts_morph.Project();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.13",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tree-kill": "1.2.2",
|
|
58
58
|
"vite": "^5.1.6",
|
|
59
59
|
"vitest": "^2.0.1",
|
|
60
|
-
"@vercel/functions": "2.2.
|
|
60
|
+
"@vercel/functions": "2.2.12"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "node build.mjs",
|