@vercel/express 0.0.20 → 0.0.22

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 +17 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -411,9 +411,16 @@ var rolldown = async (args) => {
411
411
  });
412
412
  for (const file of nftResult.fileList) {
413
413
  if (file.startsWith(relativeOutputDir)) {
414
- continue;
414
+ const stats = (0, import_fs2.lstatSync)(file);
415
+ const relPath = (0, import_path3.relative)(outputDir, file);
416
+ files[relPath] = new import_build_utils3.FileFsRef({
417
+ fsPath: file,
418
+ mode: stats.mode
419
+ });
420
+ } else {
421
+ const stats = (0, import_fs2.lstatSync)(file);
422
+ files[file] = new import_build_utils3.FileFsRef({ fsPath: file, mode: stats.mode });
415
423
  }
416
- files[file] = new import_build_utils3.FileFsRef({ fsPath: file, mode: 420 });
417
424
  }
418
425
  return {
419
426
  files,
@@ -809,9 +816,15 @@ var build2 = async (args) => {
809
816
  args.entrypoint = await entrypointCallback2(args);
810
817
  const rolldownResult = await rolldown(args);
811
818
  const { routes } = await introspectApp(args, rolldownResult);
812
- const lambda = new import_build_utils6.Lambda({
819
+ const lambda = new import_build_utils6.NodejsLambda({
813
820
  runtime: downloadResult.nodeVersion.runtime,
814
- ...rolldownResult
821
+ ...rolldownResult,
822
+ shouldAddHelpers: false,
823
+ shouldAddSourcemapSupport: true,
824
+ framework: {
825
+ slug: "express"
826
+ },
827
+ awsLambdaHandler: ""
815
828
  });
816
829
  const output = { index: lambda };
817
830
  for (const route of routes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/express",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "homepage": "https://vercel.com/docs",