@vercel/node 5.3.18 → 5.3.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 +6 -20
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -69658,7 +69658,9 @@ function fixConfig(config, nodeVersionMajor = 12) {
|
|
|
69658
69658
|
config.compilerOptions.esModuleInterop = true;
|
|
69659
69659
|
}
|
|
69660
69660
|
if (config.compilerOptions.module === void 0) {
|
|
69661
|
-
config.compilerOptions.module = "
|
|
69661
|
+
config.compilerOptions.module = "NodeNext";
|
|
69662
|
+
config.compilerOptions.moduleResolution = "NodeNext";
|
|
69663
|
+
config.compilerOptions.strict = false;
|
|
69662
69664
|
}
|
|
69663
69665
|
return config;
|
|
69664
69666
|
}
|
|
@@ -70096,6 +70098,9 @@ var build = async ({
|
|
|
70096
70098
|
config.projectSettings?.createdAt
|
|
70097
70099
|
);
|
|
70098
70100
|
}
|
|
70101
|
+
if (entrypointCallback) {
|
|
70102
|
+
entrypointPath = (0, import_path3.join)(entrypointFsDirname, await entrypointCallback());
|
|
70103
|
+
}
|
|
70099
70104
|
const isMiddleware = config.middleware === true;
|
|
70100
70105
|
let isEdgeFunction = isMiddleware;
|
|
70101
70106
|
const project = new import_ts_morph.Project();
|
|
@@ -70105,25 +70110,6 @@ var build = async ({
|
|
|
70105
70110
|
if (runtime) {
|
|
70106
70111
|
isEdgeFunction = isEdgeRuntime(runtime);
|
|
70107
70112
|
}
|
|
70108
|
-
if (config.projectSettings?.outputDirectory) {
|
|
70109
|
-
const outputDirFiles = await (0, import_build_utils3.glob)(
|
|
70110
|
-
"**/*",
|
|
70111
|
-
(0, import_path3.join)(workPath, config.projectSettings.outputDirectory)
|
|
70112
|
-
);
|
|
70113
|
-
const outputDirEntrypoint = entrypointCallback?.(outputDirFiles);
|
|
70114
|
-
if (outputDirEntrypoint) {
|
|
70115
|
-
const outputDirEntrypointPath = (0, import_path3.join)(
|
|
70116
|
-
workPath,
|
|
70117
|
-
config.projectSettings.outputDirectory,
|
|
70118
|
-
outputDirEntrypoint
|
|
70119
|
-
);
|
|
70120
|
-
entrypointPath = outputDirEntrypointPath;
|
|
70121
|
-
} else {
|
|
70122
|
-
console.warn(
|
|
70123
|
-
`No entrypoint found in output directory ${config.projectSettings.outputDirectory}. Using the original entrypoint of ${entrypoint}.`
|
|
70124
|
-
);
|
|
70125
|
-
}
|
|
70126
|
-
}
|
|
70127
70113
|
(0, import_build_utils3.debug)("Tracing input files...");
|
|
70128
70114
|
const traceTime = Date.now();
|
|
70129
70115
|
const { preparedFiles, shouldAddSourcemapSupport } = await compile2(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.20",
|
|
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": "12.
|
|
20
|
+
"@vercel/build-utils": "12.1.0",
|
|
21
21
|
"@vercel/error-utils": "2.0.3",
|
|
22
22
|
"@vercel/nft": "0.30.1",
|
|
23
23
|
"@vercel/static-config": "3.1.2",
|