@vercel/static-build 2.7.26 → 2.8.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.
- package/dist/index.js +216 -4
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -11121,6 +11121,30 @@ var require_frameworks = __commonJS({
|
|
|
11121
11121
|
path: "src/main.mts",
|
|
11122
11122
|
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']@nestjs/core["']\\s*(?:\\))?`
|
|
11123
11123
|
},
|
|
11124
|
+
{
|
|
11125
|
+
path: "main.js",
|
|
11126
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']@nestjs/core["']\\s*(?:\\))?`
|
|
11127
|
+
},
|
|
11128
|
+
{
|
|
11129
|
+
path: "main.cjs",
|
|
11130
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']@nestjs/core["']\\s*(?:\\))?`
|
|
11131
|
+
},
|
|
11132
|
+
{
|
|
11133
|
+
path: "main.mjs",
|
|
11134
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']@nestjs/core["']\\s*(?:\\))?`
|
|
11135
|
+
},
|
|
11136
|
+
{
|
|
11137
|
+
path: "main.ts",
|
|
11138
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']@nestjs/core["']\\s*(?:\\))?`
|
|
11139
|
+
},
|
|
11140
|
+
{
|
|
11141
|
+
path: "main.cts",
|
|
11142
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']@nestjs/core["']\\s*(?:\\))?`
|
|
11143
|
+
},
|
|
11144
|
+
{
|
|
11145
|
+
path: "main.mts",
|
|
11146
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']@nestjs/core["']\\s*(?:\\))?`
|
|
11147
|
+
},
|
|
11124
11148
|
{
|
|
11125
11149
|
path: "app.js",
|
|
11126
11150
|
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']@nestjs/core["']\\s*(?:\\))?`
|
|
@@ -11286,6 +11310,191 @@ var require_frameworks = __commonJS({
|
|
|
11286
11310
|
dependency: "nestjs",
|
|
11287
11311
|
getOutputDirName: async () => "public"
|
|
11288
11312
|
},
|
|
11313
|
+
{
|
|
11314
|
+
name: "Fastify",
|
|
11315
|
+
slug: "fastify",
|
|
11316
|
+
logo: "https://api-frameworks.vercel.sh/framework-logos/fastify.svg",
|
|
11317
|
+
darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fastify-dark.svg",
|
|
11318
|
+
tagline: "Fast and low overhead web framework, for Node.js",
|
|
11319
|
+
description: "Fastify is a web framework highly focused on providing the best developer experience with the least overhead and a powerful plugin architecture.",
|
|
11320
|
+
website: "https://fastify.dev/",
|
|
11321
|
+
useRuntime: { src: "index.js", use: "@vercel/fastify" },
|
|
11322
|
+
defaultRoutes: [
|
|
11323
|
+
{
|
|
11324
|
+
handle: "filesystem"
|
|
11325
|
+
},
|
|
11326
|
+
{
|
|
11327
|
+
src: "/(.*)",
|
|
11328
|
+
dest: "/"
|
|
11329
|
+
}
|
|
11330
|
+
],
|
|
11331
|
+
detectors: {
|
|
11332
|
+
every: [{ matchPackage: "fastify" }],
|
|
11333
|
+
some: [
|
|
11334
|
+
{
|
|
11335
|
+
path: "app.cjs",
|
|
11336
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11337
|
+
},
|
|
11338
|
+
{
|
|
11339
|
+
path: "app.js",
|
|
11340
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11341
|
+
},
|
|
11342
|
+
{
|
|
11343
|
+
path: "app.mjs",
|
|
11344
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11345
|
+
},
|
|
11346
|
+
{
|
|
11347
|
+
path: "app.mts",
|
|
11348
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11349
|
+
},
|
|
11350
|
+
{
|
|
11351
|
+
path: "app.ts",
|
|
11352
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11353
|
+
},
|
|
11354
|
+
{
|
|
11355
|
+
path: "app.cts",
|
|
11356
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11357
|
+
},
|
|
11358
|
+
{
|
|
11359
|
+
path: "index.cjs",
|
|
11360
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11361
|
+
},
|
|
11362
|
+
{
|
|
11363
|
+
path: "index.js",
|
|
11364
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11365
|
+
},
|
|
11366
|
+
{
|
|
11367
|
+
path: "index.mjs",
|
|
11368
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11369
|
+
},
|
|
11370
|
+
{
|
|
11371
|
+
path: "index.mts",
|
|
11372
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11373
|
+
},
|
|
11374
|
+
{
|
|
11375
|
+
path: "index.ts",
|
|
11376
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11377
|
+
},
|
|
11378
|
+
{
|
|
11379
|
+
path: "index.cts",
|
|
11380
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11381
|
+
},
|
|
11382
|
+
{
|
|
11383
|
+
path: "server.cjs",
|
|
11384
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11385
|
+
},
|
|
11386
|
+
{
|
|
11387
|
+
path: "server.js",
|
|
11388
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11389
|
+
},
|
|
11390
|
+
{
|
|
11391
|
+
path: "server.mjs",
|
|
11392
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11393
|
+
},
|
|
11394
|
+
{
|
|
11395
|
+
path: "server.mts",
|
|
11396
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11397
|
+
},
|
|
11398
|
+
{
|
|
11399
|
+
path: "server.ts",
|
|
11400
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11401
|
+
},
|
|
11402
|
+
{
|
|
11403
|
+
path: "server.cts",
|
|
11404
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11405
|
+
},
|
|
11406
|
+
{
|
|
11407
|
+
path: "src/index.cjs",
|
|
11408
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11409
|
+
},
|
|
11410
|
+
{
|
|
11411
|
+
path: "src/index.js",
|
|
11412
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11413
|
+
},
|
|
11414
|
+
{
|
|
11415
|
+
path: "src/index.mjs",
|
|
11416
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11417
|
+
},
|
|
11418
|
+
{
|
|
11419
|
+
path: "src/index.mts",
|
|
11420
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11421
|
+
},
|
|
11422
|
+
{
|
|
11423
|
+
path: "src/index.ts",
|
|
11424
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11425
|
+
},
|
|
11426
|
+
{
|
|
11427
|
+
path: "src/index.cts",
|
|
11428
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11429
|
+
},
|
|
11430
|
+
{
|
|
11431
|
+
path: "src/app.cjs",
|
|
11432
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11433
|
+
},
|
|
11434
|
+
{
|
|
11435
|
+
path: "src/app.js",
|
|
11436
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11437
|
+
},
|
|
11438
|
+
{
|
|
11439
|
+
path: "src/app.mjs",
|
|
11440
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11441
|
+
},
|
|
11442
|
+
{
|
|
11443
|
+
path: "src/app.mts",
|
|
11444
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11445
|
+
},
|
|
11446
|
+
{
|
|
11447
|
+
path: "src/app.ts",
|
|
11448
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11449
|
+
},
|
|
11450
|
+
{
|
|
11451
|
+
path: "src/app.cts",
|
|
11452
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11453
|
+
},
|
|
11454
|
+
{
|
|
11455
|
+
path: "src/server.cjs",
|
|
11456
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11457
|
+
},
|
|
11458
|
+
{
|
|
11459
|
+
path: "src/server.js",
|
|
11460
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11461
|
+
},
|
|
11462
|
+
{
|
|
11463
|
+
path: "src/server.mjs",
|
|
11464
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11465
|
+
},
|
|
11466
|
+
{
|
|
11467
|
+
path: "src/server.mts",
|
|
11468
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11469
|
+
},
|
|
11470
|
+
{
|
|
11471
|
+
path: "src/server.ts",
|
|
11472
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11473
|
+
},
|
|
11474
|
+
{
|
|
11475
|
+
path: "src/server.cts",
|
|
11476
|
+
matchContent: `(?:from|require|import)\\s*(?:\\(\\s*)?["']fastify["']\\s*(?:\\))?`
|
|
11477
|
+
}
|
|
11478
|
+
]
|
|
11479
|
+
},
|
|
11480
|
+
settings: {
|
|
11481
|
+
installCommand: {
|
|
11482
|
+
placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
|
|
11483
|
+
},
|
|
11484
|
+
buildCommand: {
|
|
11485
|
+
placeholder: "None",
|
|
11486
|
+
value: null
|
|
11487
|
+
},
|
|
11488
|
+
devCommand: {
|
|
11489
|
+
placeholder: "None",
|
|
11490
|
+
value: null
|
|
11491
|
+
},
|
|
11492
|
+
outputDirectory: {
|
|
11493
|
+
value: "N/A"
|
|
11494
|
+
}
|
|
11495
|
+
},
|
|
11496
|
+
getOutputDirName: async () => "public"
|
|
11497
|
+
},
|
|
11289
11498
|
{
|
|
11290
11499
|
name: "xmcp",
|
|
11291
11500
|
slug: "xmcp",
|
|
@@ -19155,6 +19364,9 @@ var require_detect_builders = __commonJS({
|
|
|
19155
19364
|
config.excludeFiles = func.excludeFiles;
|
|
19156
19365
|
}
|
|
19157
19366
|
}
|
|
19367
|
+
if (options.bunVersion) {
|
|
19368
|
+
config.bunVersion = options.bunVersion;
|
|
19369
|
+
}
|
|
19158
19370
|
const builder = {
|
|
19159
19371
|
use,
|
|
19160
19372
|
src: fileName,
|
|
@@ -19211,6 +19423,9 @@ var require_detect_builders = __commonJS({
|
|
|
19211
19423
|
if (projectSettings.outputDirectory) {
|
|
19212
19424
|
config.outputDirectory = projectSettings.outputDirectory;
|
|
19213
19425
|
}
|
|
19426
|
+
if (options.bunVersion) {
|
|
19427
|
+
config.bunVersion = options.bunVersion;
|
|
19428
|
+
}
|
|
19214
19429
|
if (pkg && (framework === void 0 || framework !== "storybook" && createdAt < Date.parse("2020-03-01"))) {
|
|
19215
19430
|
const deps = {
|
|
19216
19431
|
...pkg.dependencies,
|
|
@@ -19331,7 +19546,7 @@ var require_detect_builders = __commonJS({
|
|
|
19331
19546
|
}
|
|
19332
19547
|
if (frontendBuilder && (0, import_is_official_runtime.isOfficialRuntime)("next", frontendBuilder.use)) {
|
|
19333
19548
|
for (const fnKey of unusedFunctions.values()) {
|
|
19334
|
-
if (fnKey.startsWith("pages/") || fnKey.startsWith("src/pages") || fnKey.startsWith("app/") || fnKey.startsWith("src/app/")) {
|
|
19549
|
+
if (fnKey.startsWith("pages/") || fnKey.startsWith("src/pages") || fnKey.startsWith("app/") || fnKey.startsWith("src/app/") || fnKey.startsWith("middleware") || fnKey.startsWith("src/middleware")) {
|
|
19335
19550
|
unusedFunctions.delete(fnKey);
|
|
19336
19551
|
} else {
|
|
19337
19552
|
return {
|
|
@@ -28735,7 +28950,6 @@ var build = async ({
|
|
|
28735
28950
|
cliType,
|
|
28736
28951
|
lockfileVersion,
|
|
28737
28952
|
packageJsonPackageManager,
|
|
28738
|
-
nodeVersion,
|
|
28739
28953
|
env: spawnOpts.env || {},
|
|
28740
28954
|
turboSupportsCorepackHome,
|
|
28741
28955
|
projectCreatedAt: config.projectSettings?.createdAt
|
|
@@ -28757,7 +28971,6 @@ var build = async ({
|
|
|
28757
28971
|
[],
|
|
28758
28972
|
spawnOpts,
|
|
28759
28973
|
meta,
|
|
28760
|
-
nodeVersion,
|
|
28761
28974
|
config.projectSettings?.createdAt
|
|
28762
28975
|
);
|
|
28763
28976
|
isNpmInstall = true;
|
|
@@ -28811,7 +29024,6 @@ var build = async ({
|
|
|
28811
29024
|
[],
|
|
28812
29025
|
spawnOpts,
|
|
28813
29026
|
meta,
|
|
28814
|
-
nodeVersion,
|
|
28815
29027
|
config.projectSettings?.createdAt
|
|
28816
29028
|
);
|
|
28817
29029
|
isNpmInstall = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
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.99",
|
|
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": "12.
|
|
31
|
+
"@vercel/build-utils": "12.2.0",
|
|
32
32
|
"@vercel/error-utils": "2.0.3",
|
|
33
|
-
"@vercel/frameworks": "3.
|
|
34
|
-
"@vercel/fs-detectors": "5.
|
|
33
|
+
"@vercel/frameworks": "3.14.0",
|
|
34
|
+
"@vercel/fs-detectors": "5.7.0",
|
|
35
35
|
"@vercel/routing-utils": "5.2.0",
|
|
36
36
|
"execa": "3.2.0",
|
|
37
37
|
"fs-extra": "10.0.0",
|