@vercel/redwood 2.4.15 → 2.5.0

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 +21 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2560,6 +2560,7 @@ var require_dist3 = __commonJS({
2560
2560
  var src_exports = {};
2561
2561
  __export(src_exports, {
2562
2562
  build: () => build,
2563
+ diagnostics: () => diagnostics,
2563
2564
  prepareCache: () => prepareCache,
2564
2565
  version: () => version
2565
2566
  });
@@ -2578,7 +2579,8 @@ var build = async ({
2578
2579
  files,
2579
2580
  entrypoint,
2580
2581
  meta = {},
2581
- config = {}
2582
+ config = {},
2583
+ service
2582
2584
  }) => {
2583
2585
  await (0, import_build_utils.download)(files, workPath, meta);
2584
2586
  const prefixedEnvs = (0, import_build_utils.getPrefixedEnvVars)({
@@ -2599,6 +2601,7 @@ var build = async ({
2599
2601
  );
2600
2602
  const {
2601
2603
  cliType,
2604
+ lockfilePath,
2602
2605
  lockfileVersion,
2603
2606
  packageJsonPackageManager,
2604
2607
  turboSupportsCorepackHome
@@ -2630,6 +2633,21 @@ var build = async ({
2630
2633
  config.projectSettings?.createdAt
2631
2634
  );
2632
2635
  }
2636
+ try {
2637
+ await (0, import_build_utils.generateProjectManifest)({
2638
+ workPath: entrypointFsDirname,
2639
+ nodeVersion,
2640
+ cliType,
2641
+ lockfilePath,
2642
+ lockfileVersion,
2643
+ framework: config.framework ?? void 0,
2644
+ serviceType: service ? (0, import_build_utils.getReportedServiceType)(service) : void 0
2645
+ });
2646
+ } catch (err) {
2647
+ (0, import_build_utils.debug)(
2648
+ `Failed to write redwood manifest: ${err instanceof Error ? err.message : String(err)}`
2649
+ );
2650
+ }
2633
2651
  if (meta.isDev) {
2634
2652
  throw new Error("Detected `@vercel/redwood` dev but this is not supported");
2635
2653
  }
@@ -2805,9 +2823,11 @@ function hasScript(scriptName, pkg) {
2805
2823
  var prepareCache = ({ repoRootPath, workPath }) => {
2806
2824
  return (0, import_build_utils.glob)(import_build_utils.defaultCachePathGlob, repoRootPath || workPath);
2807
2825
  };
2826
+ var diagnostics = (0, import_build_utils.createDiagnostics)("node");
2808
2827
  // Annotate the CommonJS export names for ESM import in node:
2809
2828
  0 && (module.exports = {
2810
2829
  build,
2830
+ diagnostics,
2811
2831
  prepareCache,
2812
2832
  version
2813
2833
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/redwood",
3
- "version": "2.4.15",
3
+ "version": "2.5.0",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs",
@@ -25,7 +25,7 @@
25
25
  "execa": "3.2.0",
26
26
  "fs-extra": "11.1.0",
27
27
  "vitest": "2.0.3",
28
- "@vercel/build-utils": "13.26.4",
28
+ "@vercel/build-utils": "13.28.0",
29
29
  "@vercel/routing-utils": "6.2.0"
30
30
  },
31
31
  "scripts": {