@vercel/remix-builder 2.1.3 → 2.1.5
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.
- package/dist/index.js +41 -34
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3103,7 +3103,12 @@ function logNftWarnings(warnings, required) {
|
|
|
3103
3103
|
}
|
|
3104
3104
|
}
|
|
3105
3105
|
function isVite(dir) {
|
|
3106
|
-
const viteConfig = findConfig(dir, "vite.config", [
|
|
3106
|
+
const viteConfig = findConfig(dir, "vite.config", [
|
|
3107
|
+
".js",
|
|
3108
|
+
".ts",
|
|
3109
|
+
".mjs",
|
|
3110
|
+
".mts"
|
|
3111
|
+
]);
|
|
3107
3112
|
if (!viteConfig)
|
|
3108
3113
|
return false;
|
|
3109
3114
|
const remixConfig = findConfig(dir, "remix.config");
|
|
@@ -4103,39 +4108,41 @@ var prepareCache = async ({
|
|
|
4103
4108
|
const root = repoRootPath || workPath;
|
|
4104
4109
|
const mountpoint = (0, import_path5.dirname)(entrypoint);
|
|
4105
4110
|
const entrypointFsDirname = (0, import_path5.join)(workPath, mountpoint);
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
(0, import_build_utils5.glob)(
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4111
|
+
let cacheDirFiles;
|
|
4112
|
+
if (!isVite(workPath)) {
|
|
4113
|
+
const nodeVersion = await (0, import_build_utils5.getNodeVersion)(
|
|
4114
|
+
entrypointFsDirname,
|
|
4115
|
+
void 0,
|
|
4116
|
+
config
|
|
4117
|
+
);
|
|
4118
|
+
const spawnOpts = (0, import_build_utils5.getSpawnOptions)({}, nodeVersion);
|
|
4119
|
+
await (0, import_build_utils5.runNpmInstall)(
|
|
4120
|
+
entrypointFsDirname,
|
|
4121
|
+
[],
|
|
4122
|
+
{
|
|
4123
|
+
...spawnOpts,
|
|
4124
|
+
stdio: "ignore"
|
|
4125
|
+
},
|
|
4126
|
+
void 0,
|
|
4127
|
+
nodeVersion
|
|
4128
|
+
);
|
|
4129
|
+
const packageJsonPath = (0, import_path5.join)(entrypointFsDirname, "package.json");
|
|
4130
|
+
const remixRunDevPath = (0, import_path5.dirname)(
|
|
4131
|
+
require_.resolve("@remix-run/dev/package.json", {
|
|
4132
|
+
paths: [entrypointFsDirname]
|
|
4133
|
+
})
|
|
4134
|
+
);
|
|
4135
|
+
const remixConfig = await chdirAndReadConfig(
|
|
4136
|
+
remixRunDevPath,
|
|
4137
|
+
entrypointFsDirname,
|
|
4138
|
+
packageJsonPath
|
|
4139
|
+
);
|
|
4140
|
+
cacheDirFiles = await (0, import_build_utils5.glob)(
|
|
4141
|
+
(0, import_path5.relative)(root, (0, import_path5.join)(remixConfig.cacheDirectory, "**")),
|
|
4142
|
+
root
|
|
4143
|
+
);
|
|
4144
|
+
}
|
|
4145
|
+
const nodeModulesFiles = await (0, import_build_utils5.glob)("**/node_modules/**", root);
|
|
4139
4146
|
return { ...nodeModulesFiles, ...cacheDirFiles };
|
|
4140
4147
|
};
|
|
4141
4148
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/remix-builder",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"homepage": "https://vercel.com/docs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@types/jest": "27.5.1",
|
|
26
26
|
"@types/node": "14.18.33",
|
|
27
27
|
"@types/semver": "7.3.13",
|
|
28
|
-
"@vercel/build-utils": "7.
|
|
28
|
+
"@vercel/build-utils": "7.10.0",
|
|
29
29
|
"jest-junit": "16.0.0",
|
|
30
30
|
"path-to-regexp": "6.2.1",
|
|
31
31
|
"semver": "7.5.2"
|