@vercel/static-build 2.8.3 → 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 +52 -31
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -10087,6 +10087,39 @@ var require_frameworks = __commonJS({
|
|
|
10087
10087
|
dependency: "vite",
|
|
10088
10088
|
getOutputDirName: async () => "dist"
|
|
10089
10089
|
},
|
|
10090
|
+
{
|
|
10091
|
+
name: "TanStack Start",
|
|
10092
|
+
slug: "tanstack-start",
|
|
10093
|
+
logo: "https://api-frameworks.vercel.sh/framework-logos/tanstack-start.svg",
|
|
10094
|
+
darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/tanstack-start-dark.svg",
|
|
10095
|
+
tagline: "Full-stack Framework powered by TanStack Router for React and Solid.",
|
|
10096
|
+
description: "Full-document SSR, Streaming, Server Functions, bundling and more, powered by TanStack Router and Vite - Ready to deploy to your favorite hosting provider.",
|
|
10097
|
+
website: "https://tanstack.com/start",
|
|
10098
|
+
supersedes: ["ionic-react", "vite"],
|
|
10099
|
+
detectors: {
|
|
10100
|
+
every: [
|
|
10101
|
+
{ matchPackage: "@tanstack/router-plugin" },
|
|
10102
|
+
{ matchPackage: "nitro" }
|
|
10103
|
+
]
|
|
10104
|
+
},
|
|
10105
|
+
settings: {
|
|
10106
|
+
installCommand: {
|
|
10107
|
+
placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
|
|
10108
|
+
},
|
|
10109
|
+
buildCommand: {
|
|
10110
|
+
placeholder: "`npm run build` or `vite build`",
|
|
10111
|
+
value: "vite build"
|
|
10112
|
+
},
|
|
10113
|
+
devCommand: {
|
|
10114
|
+
placeholder: "vite",
|
|
10115
|
+
value: "vite --port $PORT"
|
|
10116
|
+
},
|
|
10117
|
+
outputDirectory: {
|
|
10118
|
+
value: "dist"
|
|
10119
|
+
}
|
|
10120
|
+
},
|
|
10121
|
+
getOutputDirName: async () => "dist"
|
|
10122
|
+
},
|
|
10090
10123
|
{
|
|
10091
10124
|
name: "VitePress",
|
|
10092
10125
|
slug: "vitepress",
|
|
@@ -10262,15 +10295,15 @@ var require_frameworks = __commonJS({
|
|
|
10262
10295
|
some: [
|
|
10263
10296
|
{
|
|
10264
10297
|
path: "requirements.txt",
|
|
10265
|
-
matchContent: "
|
|
10298
|
+
matchContent: "[Ff]lask"
|
|
10266
10299
|
},
|
|
10267
10300
|
{
|
|
10268
10301
|
path: "pyproject.toml",
|
|
10269
|
-
matchContent: "
|
|
10302
|
+
matchContent: "[Ff]lask"
|
|
10270
10303
|
},
|
|
10271
10304
|
{
|
|
10272
10305
|
path: "Pipfile",
|
|
10273
|
-
matchContent: "
|
|
10306
|
+
matchContent: "[Ff]lask"
|
|
10274
10307
|
}
|
|
10275
10308
|
]
|
|
10276
10309
|
},
|
|
@@ -29119,27 +29152,23 @@ var build = async ({
|
|
|
29119
29152
|
config,
|
|
29120
29153
|
meta
|
|
29121
29154
|
);
|
|
29122
|
-
const spawnOpts = (0, import_build_utils4.getSpawnOptions)(meta, nodeVersion);
|
|
29123
|
-
if (!spawnOpts.env) {
|
|
29124
|
-
spawnOpts.env = {};
|
|
29125
|
-
}
|
|
29126
|
-
if (framework?.slug === "create-react-app") {
|
|
29127
|
-
spawnOpts.env.CI = "false";
|
|
29128
|
-
}
|
|
29129
29155
|
const {
|
|
29130
29156
|
cliType,
|
|
29131
29157
|
lockfileVersion,
|
|
29132
29158
|
packageJsonPackageManager,
|
|
29133
29159
|
turboSupportsCorepackHome
|
|
29134
29160
|
} = await (0, import_build_utils4.scanParentDirs)(entrypointDir, true);
|
|
29135
|
-
|
|
29161
|
+
const spawnEnv = (0, import_build_utils4.getEnvForPackageManager)({
|
|
29136
29162
|
cliType,
|
|
29137
29163
|
lockfileVersion,
|
|
29138
29164
|
packageJsonPackageManager,
|
|
29139
|
-
env:
|
|
29165
|
+
env: process.env,
|
|
29140
29166
|
turboSupportsCorepackHome,
|
|
29141
29167
|
projectCreatedAt: config.projectSettings?.createdAt
|
|
29142
29168
|
});
|
|
29169
|
+
if (framework?.slug === "create-react-app") {
|
|
29170
|
+
spawnEnv.CI = "false";
|
|
29171
|
+
}
|
|
29143
29172
|
if (meta.isDev) {
|
|
29144
29173
|
(0, import_build_utils4.debug)("Skipping dependency installation because dev mode is enabled");
|
|
29145
29174
|
} else {
|
|
@@ -29155,7 +29184,7 @@ var build = async ({
|
|
|
29155
29184
|
await (0, import_build_utils4.runNpmInstall)(
|
|
29156
29185
|
entrypointDir,
|
|
29157
29186
|
[],
|
|
29158
|
-
|
|
29187
|
+
{ env: spawnEnv },
|
|
29159
29188
|
meta,
|
|
29160
29189
|
config.projectSettings?.createdAt
|
|
29161
29190
|
);
|
|
@@ -29164,7 +29193,7 @@ var build = async ({
|
|
|
29164
29193
|
if (installCommand.trim()) {
|
|
29165
29194
|
console.log(`Running "install" command: \`${installCommand}\`...`);
|
|
29166
29195
|
await (0, import_build_utils4.execCommand)(installCommand, {
|
|
29167
|
-
|
|
29196
|
+
env: spawnEnv,
|
|
29168
29197
|
cwd: entrypointDir
|
|
29169
29198
|
});
|
|
29170
29199
|
isNpmInstall = true;
|
|
@@ -29208,7 +29237,7 @@ var build = async ({
|
|
|
29208
29237
|
await (0, import_build_utils4.runNpmInstall)(
|
|
29209
29238
|
entrypointDir,
|
|
29210
29239
|
[],
|
|
29211
|
-
|
|
29240
|
+
{ env: spawnEnv },
|
|
29212
29241
|
meta,
|
|
29213
29242
|
config.projectSettings?.createdAt
|
|
29214
29243
|
);
|
|
@@ -29250,11 +29279,11 @@ var build = async ({
|
|
|
29250
29279
|
}
|
|
29251
29280
|
if (isPipInstall) {
|
|
29252
29281
|
}
|
|
29253
|
-
if (
|
|
29254
|
-
pathList.push(
|
|
29282
|
+
if (spawnEnv.PATH) {
|
|
29283
|
+
pathList.push(spawnEnv.PATH);
|
|
29255
29284
|
}
|
|
29256
|
-
|
|
29257
|
-
...
|
|
29285
|
+
const cliEnv = {
|
|
29286
|
+
...process.env,
|
|
29258
29287
|
PATH: pathList.join(import_path6.default.delimiter),
|
|
29259
29288
|
GEM_HOME: gemHome
|
|
29260
29289
|
};
|
|
@@ -29272,7 +29301,7 @@ var build = async ({
|
|
|
29272
29301
|
const opts = {
|
|
29273
29302
|
cwd: entrypointDir,
|
|
29274
29303
|
stdio: "inherit",
|
|
29275
|
-
env: { ...
|
|
29304
|
+
env: { ...cliEnv, PORT: String(devPort) }
|
|
29276
29305
|
};
|
|
29277
29306
|
const cmd = devCommand || `yarn run ${devScript}`;
|
|
29278
29307
|
const child = (0, import_build_utils4.spawnCommand)(cmd, opts);
|
|
@@ -29307,18 +29336,17 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
|
|
|
29307
29336
|
}
|
|
29308
29337
|
try {
|
|
29309
29338
|
const found = typeof buildCommand === "string" ? await (0, import_build_utils4.execCommand)(buildCommand, {
|
|
29310
|
-
...spawnOpts,
|
|
29311
29339
|
// Yarn v2 PnP mode may be activated, so force
|
|
29312
29340
|
// "node-modules" linker style
|
|
29313
29341
|
env: {
|
|
29314
29342
|
YARN_NODE_LINKER: "node-modules",
|
|
29315
|
-
...
|
|
29343
|
+
...cliEnv
|
|
29316
29344
|
},
|
|
29317
29345
|
cwd: entrypointDir
|
|
29318
29346
|
}) : await (0, import_build_utils4.runPackageJsonScript)(
|
|
29319
29347
|
entrypointDir,
|
|
29320
29348
|
["vercel-build", "now-build", "build"],
|
|
29321
|
-
|
|
29349
|
+
{ env: cliEnv },
|
|
29322
29350
|
config.projectSettings?.createdAt
|
|
29323
29351
|
);
|
|
29324
29352
|
if (!found) {
|
|
@@ -29403,14 +29431,7 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
|
|
|
29403
29431
|
}
|
|
29404
29432
|
if (!config.zeroConfig && entrypoint.endsWith(".sh")) {
|
|
29405
29433
|
(0, import_build_utils4.debug)(`Running build script "${entrypoint}"`);
|
|
29406
|
-
|
|
29407
|
-
entrypointDir,
|
|
29408
|
-
void 0,
|
|
29409
|
-
config,
|
|
29410
|
-
meta
|
|
29411
|
-
);
|
|
29412
|
-
const spawnOpts = (0, import_build_utils4.getSpawnOptions)(meta, nodeVersion);
|
|
29413
|
-
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));
|
|
29414
29435
|
validateDistDir(distPath, workPath);
|
|
29415
29436
|
const output = await (0, import_build_utils4.glob)("**", distPath, mountpoint);
|
|
29416
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.
|
|
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",
|