@vercel/static-build 2.9.38 → 2.10.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.
Files changed (2) hide show
  1. package/dist/index.js +23 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -34072,6 +34072,7 @@ var require_dist8 = __commonJS({
34072
34072
  var src_exports = {};
34073
34073
  __export(src_exports, {
34074
34074
  build: () => build,
34075
+ diagnostics: () => diagnostics,
34075
34076
  prepareCache: () => prepareCache,
34076
34077
  version: () => version
34077
34078
  });
@@ -35155,7 +35156,8 @@ var build = async ({
35155
35156
  workPath,
35156
35157
  repoRootPath,
35157
35158
  config,
35158
- meta = {}
35159
+ meta = {},
35160
+ service
35159
35161
  }) => {
35160
35162
  await (0, import_build_utils4.download)(files, workPath, meta);
35161
35163
  const routePrefix = config.routePrefix;
@@ -35268,6 +35270,7 @@ var build = async ({
35268
35270
  );
35269
35271
  const {
35270
35272
  cliType,
35273
+ lockfilePath,
35271
35274
  lockfileVersion,
35272
35275
  packageJsonPackageManager,
35273
35276
  turboSupportsCorepackHome
@@ -35362,6 +35365,23 @@ var build = async ({
35362
35365
  }
35363
35366
  }
35364
35367
  }
35368
+ if (framework?.slug) {
35369
+ try {
35370
+ await (0, import_build_utils4.generateProjectManifest)({
35371
+ workPath: entrypointDir,
35372
+ nodeVersion,
35373
+ cliType,
35374
+ lockfilePath,
35375
+ lockfileVersion,
35376
+ framework: framework.slug,
35377
+ serviceType: service ? (0, import_build_utils4.getReportedServiceType)(service) : void 0
35378
+ });
35379
+ } catch (err) {
35380
+ (0, import_build_utils4.debug)(
35381
+ `Failed to write static-build manifest: ${err instanceof Error ? err.message : String(err)}`
35382
+ );
35383
+ }
35384
+ }
35365
35385
  if (framework?.slug === "gatsby") {
35366
35386
  await createPluginSymlinks(entrypointDir);
35367
35387
  }
@@ -35618,9 +35638,11 @@ var prepareCache = async ({
35618
35638
  }
35619
35639
  return cacheFiles;
35620
35640
  };
35641
+ var diagnostics = (0, import_build_utils4.createDiagnostics)("node");
35621
35642
  // Annotate the CommonJS export names for ESM import in node:
35622
35643
  0 && (module.exports = {
35623
35644
  build,
35645
+ diagnostics,
35624
35646
  prepareCache,
35625
35647
  version
35626
35648
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "2.9.38",
3
+ "version": "2.10.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "ts-morph": "12.0.0",
17
- "@vercel/gatsby-plugin-vercel-builder": "2.2.15",
18
- "@vercel/static-config": "3.4.0",
19
- "@vercel/gatsby-plugin-vercel-analytics": "1.0.11"
17
+ "@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
18
+ "@vercel/gatsby-plugin-vercel-builder": "2.2.16",
19
+ "@vercel/static-config": "3.4.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/aws-lambda": "8.10.64",
@@ -37,10 +37,10 @@
37
37
  "semver": "7.5.2",
38
38
  "tree-kill": "1.2.2",
39
39
  "vitest": "2.0.3",
40
- "@vercel/build-utils": "13.27.2",
41
- "@vercel/error-utils": "2.2.0",
40
+ "@vercel/build-utils": "13.28.0",
42
41
  "@vercel/frameworks": "3.28.0",
43
- "@vercel/fs-detectors": "6.8.0",
42
+ "@vercel/error-utils": "2.2.0",
43
+ "@vercel/fs-detectors": "6.8.1",
44
44
  "@vercel/routing-utils": "6.2.0"
45
45
  },
46
46
  "scripts": {