@vercel/node 5.3.19 → 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -19
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -70098,6 +70098,9 @@ var build = async ({
70098
70098
  config.projectSettings?.createdAt
70099
70099
  );
70100
70100
  }
70101
+ if (entrypointCallback) {
70102
+ entrypointPath = (0, import_path3.join)(entrypointFsDirname, await entrypointCallback());
70103
+ }
70101
70104
  const isMiddleware = config.middleware === true;
70102
70105
  let isEdgeFunction = isMiddleware;
70103
70106
  const project = new import_ts_morph.Project();
@@ -70107,25 +70110,6 @@ var build = async ({
70107
70110
  if (runtime) {
70108
70111
  isEdgeFunction = isEdgeRuntime(runtime);
70109
70112
  }
70110
- if (config.projectSettings?.outputDirectory) {
70111
- const outputDirFiles = await (0, import_build_utils3.glob)(
70112
- "**/*",
70113
- (0, import_path3.join)(workPath, config.projectSettings.outputDirectory)
70114
- );
70115
- const outputDirEntrypoint = entrypointCallback?.(outputDirFiles);
70116
- if (outputDirEntrypoint) {
70117
- const outputDirEntrypointPath = (0, import_path3.join)(
70118
- workPath,
70119
- config.projectSettings.outputDirectory,
70120
- outputDirEntrypoint
70121
- );
70122
- entrypointPath = outputDirEntrypointPath;
70123
- } else {
70124
- console.warn(
70125
- `No entrypoint found in output directory ${config.projectSettings.outputDirectory}. Using the original entrypoint of ${entrypoint}.`
70126
- );
70127
- }
70128
- }
70129
70113
  (0, import_build_utils3.debug)("Tracing input files...");
70130
70114
  const traceTime = Date.now();
70131
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.19",
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.0.0",
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",