@vercel/static-build 2.8.4 → 2.8.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 +19 -31
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -10295,15 +10295,15 @@ var require_frameworks = __commonJS({
|
|
|
10295
10295
|
some: [
|
|
10296
10296
|
{
|
|
10297
10297
|
path: "requirements.txt",
|
|
10298
|
-
matchContent: "
|
|
10298
|
+
matchContent: "[Ff]lask"
|
|
10299
10299
|
},
|
|
10300
10300
|
{
|
|
10301
10301
|
path: "pyproject.toml",
|
|
10302
|
-
matchContent: "
|
|
10302
|
+
matchContent: "[Ff]lask"
|
|
10303
10303
|
},
|
|
10304
10304
|
{
|
|
10305
10305
|
path: "Pipfile",
|
|
10306
|
-
matchContent: "
|
|
10306
|
+
matchContent: "[Ff]lask"
|
|
10307
10307
|
}
|
|
10308
10308
|
]
|
|
10309
10309
|
},
|
|
@@ -29152,27 +29152,23 @@ var build = async ({
|
|
|
29152
29152
|
config,
|
|
29153
29153
|
meta
|
|
29154
29154
|
);
|
|
29155
|
-
const spawnOpts = (0, import_build_utils4.getSpawnOptions)(meta, nodeVersion);
|
|
29156
|
-
if (!spawnOpts.env) {
|
|
29157
|
-
spawnOpts.env = {};
|
|
29158
|
-
}
|
|
29159
|
-
if (framework?.slug === "create-react-app") {
|
|
29160
|
-
spawnOpts.env.CI = "false";
|
|
29161
|
-
}
|
|
29162
29155
|
const {
|
|
29163
29156
|
cliType,
|
|
29164
29157
|
lockfileVersion,
|
|
29165
29158
|
packageJsonPackageManager,
|
|
29166
29159
|
turboSupportsCorepackHome
|
|
29167
29160
|
} = await (0, import_build_utils4.scanParentDirs)(entrypointDir, true);
|
|
29168
|
-
|
|
29161
|
+
const spawnEnv = (0, import_build_utils4.getEnvForPackageManager)({
|
|
29169
29162
|
cliType,
|
|
29170
29163
|
lockfileVersion,
|
|
29171
29164
|
packageJsonPackageManager,
|
|
29172
|
-
env:
|
|
29165
|
+
env: process.env,
|
|
29173
29166
|
turboSupportsCorepackHome,
|
|
29174
29167
|
projectCreatedAt: config.projectSettings?.createdAt
|
|
29175
29168
|
});
|
|
29169
|
+
if (framework?.slug === "create-react-app") {
|
|
29170
|
+
spawnEnv.CI = "false";
|
|
29171
|
+
}
|
|
29176
29172
|
if (meta.isDev) {
|
|
29177
29173
|
(0, import_build_utils4.debug)("Skipping dependency installation because dev mode is enabled");
|
|
29178
29174
|
} else {
|
|
@@ -29188,7 +29184,7 @@ var build = async ({
|
|
|
29188
29184
|
await (0, import_build_utils4.runNpmInstall)(
|
|
29189
29185
|
entrypointDir,
|
|
29190
29186
|
[],
|
|
29191
|
-
|
|
29187
|
+
{ env: spawnEnv },
|
|
29192
29188
|
meta,
|
|
29193
29189
|
config.projectSettings?.createdAt
|
|
29194
29190
|
);
|
|
@@ -29197,7 +29193,7 @@ var build = async ({
|
|
|
29197
29193
|
if (installCommand.trim()) {
|
|
29198
29194
|
console.log(`Running "install" command: \`${installCommand}\`...`);
|
|
29199
29195
|
await (0, import_build_utils4.execCommand)(installCommand, {
|
|
29200
|
-
|
|
29196
|
+
env: spawnEnv,
|
|
29201
29197
|
cwd: entrypointDir
|
|
29202
29198
|
});
|
|
29203
29199
|
isNpmInstall = true;
|
|
@@ -29241,7 +29237,7 @@ var build = async ({
|
|
|
29241
29237
|
await (0, import_build_utils4.runNpmInstall)(
|
|
29242
29238
|
entrypointDir,
|
|
29243
29239
|
[],
|
|
29244
|
-
|
|
29240
|
+
{ env: spawnEnv },
|
|
29245
29241
|
meta,
|
|
29246
29242
|
config.projectSettings?.createdAt
|
|
29247
29243
|
);
|
|
@@ -29283,11 +29279,11 @@ var build = async ({
|
|
|
29283
29279
|
}
|
|
29284
29280
|
if (isPipInstall) {
|
|
29285
29281
|
}
|
|
29286
|
-
if (
|
|
29287
|
-
pathList.push(
|
|
29282
|
+
if (spawnEnv.PATH) {
|
|
29283
|
+
pathList.push(spawnEnv.PATH);
|
|
29288
29284
|
}
|
|
29289
|
-
|
|
29290
|
-
...
|
|
29285
|
+
const cliEnv = {
|
|
29286
|
+
...process.env,
|
|
29291
29287
|
PATH: pathList.join(import_path6.default.delimiter),
|
|
29292
29288
|
GEM_HOME: gemHome
|
|
29293
29289
|
};
|
|
@@ -29305,7 +29301,7 @@ var build = async ({
|
|
|
29305
29301
|
const opts = {
|
|
29306
29302
|
cwd: entrypointDir,
|
|
29307
29303
|
stdio: "inherit",
|
|
29308
|
-
env: { ...
|
|
29304
|
+
env: { ...cliEnv, PORT: String(devPort) }
|
|
29309
29305
|
};
|
|
29310
29306
|
const cmd = devCommand || `yarn run ${devScript}`;
|
|
29311
29307
|
const child = (0, import_build_utils4.spawnCommand)(cmd, opts);
|
|
@@ -29340,18 +29336,17 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
|
|
|
29340
29336
|
}
|
|
29341
29337
|
try {
|
|
29342
29338
|
const found = typeof buildCommand === "string" ? await (0, import_build_utils4.execCommand)(buildCommand, {
|
|
29343
|
-
...spawnOpts,
|
|
29344
29339
|
// Yarn v2 PnP mode may be activated, so force
|
|
29345
29340
|
// "node-modules" linker style
|
|
29346
29341
|
env: {
|
|
29347
29342
|
YARN_NODE_LINKER: "node-modules",
|
|
29348
|
-
...
|
|
29343
|
+
...cliEnv
|
|
29349
29344
|
},
|
|
29350
29345
|
cwd: entrypointDir
|
|
29351
29346
|
}) : await (0, import_build_utils4.runPackageJsonScript)(
|
|
29352
29347
|
entrypointDir,
|
|
29353
29348
|
["vercel-build", "now-build", "build"],
|
|
29354
|
-
|
|
29349
|
+
{ env: cliEnv },
|
|
29355
29350
|
config.projectSettings?.createdAt
|
|
29356
29351
|
);
|
|
29357
29352
|
if (!found) {
|
|
@@ -29436,14 +29431,7 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
|
|
|
29436
29431
|
}
|
|
29437
29432
|
if (!config.zeroConfig && entrypoint.endsWith(".sh")) {
|
|
29438
29433
|
(0, import_build_utils4.debug)(`Running build script "${entrypoint}"`);
|
|
29439
|
-
|
|
29440
|
-
entrypointDir,
|
|
29441
|
-
void 0,
|
|
29442
|
-
config,
|
|
29443
|
-
meta
|
|
29444
|
-
);
|
|
29445
|
-
const spawnOpts = (0, import_build_utils4.getSpawnOptions)(meta, nodeVersion);
|
|
29446
|
-
await (0, import_build_utils4.runShellScript)(import_path6.default.join(workPath, entrypoint), [], spawnOpts);
|
|
29434
|
+
await (0, import_build_utils4.runShellScript)(import_path6.default.join(workPath, entrypoint));
|
|
29447
29435
|
validateDistDir(distPath, workPath);
|
|
29448
29436
|
const output = await (0, import_build_utils4.glob)("**", distPath, mountpoint);
|
|
29449
29437
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
|
|
17
|
-
"@vercel/gatsby-plugin-vercel-builder": "2.0.
|
|
17
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.0.104",
|
|
18
18
|
"@vercel/static-config": "3.1.2",
|
|
19
19
|
"ts-morph": "12.0.0"
|
|
20
20
|
},
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@types/node-fetch": "2.5.4",
|
|
29
29
|
"@types/promise-timeout": "1.3.0",
|
|
30
30
|
"@types/semver": "7.3.13",
|
|
31
|
-
"@vercel/build-utils": "
|
|
31
|
+
"@vercel/build-utils": "13.0.0",
|
|
32
32
|
"@vercel/error-utils": "2.0.3",
|
|
33
|
-
"@vercel/frameworks": "3.15.
|
|
34
|
-
"@vercel/fs-detectors": "5.7.
|
|
33
|
+
"@vercel/frameworks": "3.15.2",
|
|
34
|
+
"@vercel/fs-detectors": "5.7.5",
|
|
35
35
|
"@vercel/routing-utils": "5.2.1",
|
|
36
36
|
"execa": "3.2.0",
|
|
37
37
|
"fs-extra": "10.0.0",
|