@vercel/remix-builder 5.8.5 → 5.9.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 +39 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -2446,10 +2446,12 @@ var require_semver2 = __commonJS({
2446
2446
  var src_exports = {};
2447
2447
  __export(src_exports, {
2448
2448
  build: () => build3,
2449
+ diagnostics: () => diagnostics,
2449
2450
  prepareCache: () => prepareCache,
2450
2451
  version: () => version
2451
2452
  });
2452
2453
  module.exports = __toCommonJS(src_exports);
2454
+ var import_build_utils6 = require("@vercel/build-utils");
2453
2455
 
2454
2456
  // src/build-vite.ts
2455
2457
  var import_fs2 = require("fs");
@@ -2988,7 +2990,8 @@ var build = async ({
2988
2990
  workPath,
2989
2991
  repoRootPath,
2990
2992
  config,
2991
- meta = {}
2993
+ meta = {},
2994
+ service
2992
2995
  }) => {
2993
2996
  const { installCommand, buildCommand } = config;
2994
2997
  const mountpoint = (0, import_path2.dirname)(entrypoint);
@@ -3002,6 +3005,7 @@ var build = async ({
3002
3005
  );
3003
3006
  const {
3004
3007
  cliType,
3008
+ lockfilePath,
3005
3009
  lockfileVersion,
3006
3010
  packageJson,
3007
3011
  packageJsonPackageManager,
@@ -3034,6 +3038,21 @@ var build = async ({
3034
3038
  config.projectSettings?.createdAt
3035
3039
  );
3036
3040
  }
3041
+ try {
3042
+ await (0, import_build_utils3.generateProjectManifest)({
3043
+ workPath: entrypointFsDirname,
3044
+ nodeVersion,
3045
+ cliType,
3046
+ lockfilePath,
3047
+ lockfileVersion,
3048
+ framework: config.framework ?? void 0,
3049
+ serviceType: service ? (0, import_build_utils3.getReportedServiceType)(service) : void 0
3050
+ });
3051
+ } catch (err) {
3052
+ (0, import_build_utils3.debug)(
3053
+ `Failed to write remix manifest: ${err instanceof Error ? err.message : String(err)}`
3054
+ );
3055
+ }
3037
3056
  const frameworkVersion = await getPackageVersion(
3038
3057
  frameworkSettings.primaryPackageName,
3039
3058
  entrypointFsDirname,
@@ -3489,7 +3508,8 @@ var build2 = async ({
3489
3508
  workPath,
3490
3509
  repoRootPath,
3491
3510
  config,
3492
- meta = {}
3511
+ meta = {},
3512
+ service
3493
3513
  }) => {
3494
3514
  const { installCommand, buildCommand } = config;
3495
3515
  await (0, import_build_utils4.download)(files, workPath, meta);
@@ -3544,6 +3564,21 @@ var build2 = async ({
3544
3564
  config.projectSettings?.createdAt
3545
3565
  );
3546
3566
  }
3567
+ try {
3568
+ await (0, import_build_utils4.generateProjectManifest)({
3569
+ workPath: entrypointFsDirname,
3570
+ nodeVersion,
3571
+ cliType,
3572
+ lockfilePath,
3573
+ lockfileVersion,
3574
+ framework: config.framework ?? void 0,
3575
+ serviceType: service ? (0, import_build_utils4.getReportedServiceType)(service) : void 0
3576
+ });
3577
+ } catch (err) {
3578
+ (0, import_build_utils4.debug)(
3579
+ `Failed to write remix manifest: ${err instanceof Error ? err.message : String(err)}`
3580
+ );
3581
+ }
3547
3582
  const isHydrogen2 = Boolean(
3548
3583
  pkg.dependencies?.["@shopify/remix-oxygen"] || pkg.devDependencies?.["@shopify/remix-oxygen"]
3549
3584
  );
@@ -4107,9 +4142,11 @@ var prepareCache = async ({
4107
4142
 
4108
4143
  // src/index.ts
4109
4144
  var version = 2;
4145
+ var diagnostics = (0, import_build_utils6.createDiagnostics)("node");
4110
4146
  // Annotate the CommonJS export names for ESM import in node:
4111
4147
  0 && (module.exports = {
4112
4148
  build,
4149
+ diagnostics,
4113
4150
  prepareCache,
4114
4151
  version
4115
4152
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/remix-builder",
3
- "version": "5.8.5",
3
+ "version": "5.9.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "homepage": "https://vercel.com/docs",
@@ -19,8 +19,8 @@
19
19
  "path-to-regexp-updated": "npm:path-to-regexp@6.3.0",
20
20
  "path-to-regexp": "6.1.0",
21
21
  "ts-morph": "12.0.0",
22
- "@vercel/static-config": "3.4.0",
23
- "@vercel/error-utils": "2.1.0"
22
+ "@vercel/error-utils": "2.2.0",
23
+ "@vercel/static-config": "3.4.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "20.11.0",
@@ -28,7 +28,7 @@
28
28
  "glob": "10.3.16",
29
29
  "semver": "7.5.2",
30
30
  "vitest": "2.0.1",
31
- "@vercel/build-utils": "13.26.4"
31
+ "@vercel/build-utils": "13.28.0"
32
32
  },
33
33
  "VERCEL_REMIX_RUN_DEV_MAX_VERSION": "2.16.6",
34
34
  "scripts": {