@vercel/remix-builder 5.3.1 → 5.3.3

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 +1 -13
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2914,18 +2914,6 @@ var REACT_ROUTER_FRAMEWORK_SETTINGS = {
2914
2914
  });
2915
2915
  }
2916
2916
  };
2917
- function determineFrameworkSettings(workPath) {
2918
- const isReactRouter = findConfig(workPath, "react-router.config", [
2919
- ".js",
2920
- ".ts",
2921
- ".mjs",
2922
- ".mts"
2923
- ]);
2924
- if (isReactRouter) {
2925
- return REACT_ROUTER_FRAMEWORK_SETTINGS;
2926
- }
2927
- return REMIX_FRAMEWORK_SETTINGS;
2928
- }
2929
2917
  async function determineHandler({
2930
2918
  rootDir,
2931
2919
  serverBuildPath,
@@ -2957,7 +2945,7 @@ var build = async ({
2957
2945
  const { installCommand, buildCommand } = config;
2958
2946
  const mountpoint = (0, import_path2.dirname)(entrypoint);
2959
2947
  const entrypointFsDirname = (0, import_path2.join)(workPath, mountpoint);
2960
- const frameworkSettings = determineFrameworkSettings(workPath);
2948
+ const frameworkSettings = config.framework === "react-router" ? REACT_ROUTER_FRAMEWORK_SETTINGS : REMIX_FRAMEWORK_SETTINGS;
2961
2949
  const nodeVersion = await (0, import_build_utils3.getNodeVersion)(
2962
2950
  entrypointFsDirname,
2963
2951
  void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/remix-builder",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.js",
6
6
  "homepage": "https://vercel.com/docs",
@@ -26,13 +26,13 @@
26
26
  "@types/jest": "27.5.1",
27
27
  "@types/node": "14.18.33",
28
28
  "@types/semver": "7.3.13",
29
- "@vercel/build-utils": "9.3.1",
29
+ "@vercel/build-utils": "10.1.0",
30
30
  "glob": "10.3.16",
31
31
  "jest-junit": "16.0.0",
32
32
  "semver": "7.5.2",
33
33
  "vitest": "2.0.1"
34
34
  },
35
- "VERCEL_REMIX_RUN_DEV_MAX_VERSION": "2.15.2",
35
+ "VERCEL_REMIX_RUN_DEV_MAX_VERSION": "2.15.3",
36
36
  "scripts": {
37
37
  "build": "node ../../utils/build-builder.mjs",
38
38
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail --runInBand",