@vercel/static-build 2.5.18 → 2.5.19

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 +12 -8
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -17815,6 +17815,9 @@ var require_detect_builders = __commonJS({
17815
17815
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
17816
17816
  var detect_builders_exports = {};
17817
17817
  __export2(detect_builders_exports, {
17818
+ REGEX_MIDDLEWARE_FILES: () => REGEX_MIDDLEWARE_FILES,
17819
+ REGEX_NON_VERCEL_PLATFORM_FILES: () => REGEX_NON_VERCEL_PLATFORM_FILES2,
17820
+ REGEX_VERCEL_PLATFORM_FILES: () => REGEX_VERCEL_PLATFORM_FILES,
17818
17821
  detectApiDirectory: () => detectApiDirectory2,
17819
17822
  detectApiExtensions: () => detectApiExtensions2,
17820
17823
  detectBuilders: () => detectBuilders2,
@@ -17827,6 +17830,9 @@ var require_detect_builders = __commonJS({
17827
17830
  var import_path7 = require("path");
17828
17831
  var import_frameworks2 = __toESM2(require_frameworks());
17829
17832
  var import_is_official_runtime = require_is_official_runtime();
17833
+ var REGEX_MIDDLEWARE_FILES = "middleware.[jt]s";
17834
+ var REGEX_VERCEL_PLATFORM_FILES = `api/**,package.json,${REGEX_MIDDLEWARE_FILES}`;
17835
+ var REGEX_NON_VERCEL_PLATFORM_FILES2 = `!{${REGEX_VERCEL_PLATFORM_FILES}}`;
17830
17836
  var slugToFramework = new Map(
17831
17837
  import_frameworks2.default.map((f) => [f.slug, f])
17832
17838
  );
@@ -17983,7 +17989,7 @@ var require_detect_builders = __commonJS({
17983
17989
  } else if (apiBuilders.length && hasNoneApiFiles) {
17984
17990
  frontendBuilder = {
17985
17991
  use: "@vercel/static",
17986
- src: "!{api/**,package.json,middleware.[jt]s}",
17992
+ src: REGEX_NON_VERCEL_PLATFORM_FILES2,
17987
17993
  config: {
17988
17994
  zeroConfig: true
17989
17995
  }
@@ -18105,7 +18111,7 @@ var require_detect_builders = __commonJS({
18105
18111
  const config = { zeroConfig: true };
18106
18112
  return [
18107
18113
  {
18108
- src: "middleware.[jt]s",
18114
+ src: REGEX_MIDDLEWARE_FILES,
18109
18115
  use: `@vercel/node`,
18110
18116
  config: { ...config, middleware: true }
18111
18117
  },
@@ -26313,6 +26319,7 @@ var require_dist4 = __commonJS({
26313
26319
  GetWorkspaceOptions: () => import_get_workspaces.GetWorkspaceOptions,
26314
26320
  GetWorkspacePackagePathsOptions: () => import_get_workspace_package_paths.GetWorkspacePackagePathsOptions,
26315
26321
  LocalFileSystemDetector: () => import_local_file_system_detector.LocalFileSystemDetector,
26322
+ REGEX_NON_VERCEL_PLATFORM_FILES: () => import_detect_builders2.REGEX_NON_VERCEL_PLATFORM_FILES,
26316
26323
  Workspace: () => import_get_workspaces.Workspace,
26317
26324
  WorkspaceType: () => import_get_workspaces.WorkspaceType,
26318
26325
  detectApiDirectory: () => import_detect_builders.detectApiDirectory,
@@ -26347,6 +26354,7 @@ var require_dist4 = __commonJS({
26347
26354
  var import_is_official_runtime = require_is_official_runtime();
26348
26355
  var import_package_managers = require_package_managers();
26349
26356
  __reExport(src_exports2, require_get_monorepo_default_settings(), module2.exports);
26357
+ var import_detect_builders2 = require_detect_builders();
26350
26358
  }
26351
26359
  });
26352
26360
 
@@ -27730,9 +27738,7 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
27730
27738
  distPath,
27731
27739
  config
27732
27740
  ) || distPath;
27733
- const buildOutputPathV3 = await getBuildOutputDirectory2(
27734
- outputDirPrefix
27735
- );
27741
+ const buildOutputPathV3 = await getBuildOutputDirectory2(outputDirPrefix);
27736
27742
  if (buildOutputPathV3) {
27737
27743
  return createBuildOutput2(
27738
27744
  meta,
@@ -27741,9 +27747,7 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
27741
27747
  framework
27742
27748
  );
27743
27749
  }
27744
- const buildOutputPathV2 = await getBuildOutputDirectory(
27745
- outputDirPrefix
27746
- );
27750
+ const buildOutputPathV2 = await getBuildOutputDirectory(outputDirPrefix);
27747
27751
  if (buildOutputPathV2) {
27748
27752
  return await createBuildOutput(workPath);
27749
27753
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "2.5.18",
3
+ "version": "2.5.19",
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.40",
17
+ "@vercel/gatsby-plugin-vercel-builder": "2.0.41",
18
18
  "@vercel/static-config": "3.0.0",
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": "8.3.6",
31
+ "@vercel/build-utils": "8.3.7",
32
32
  "@vercel/error-utils": "2.0.2",
33
33
  "@vercel/frameworks": "3.1.1",
34
- "@vercel/fs-detectors": "5.2.7",
34
+ "@vercel/fs-detectors": "5.2.8",
35
35
  "@vercel/routing-utils": "3.1.0",
36
36
  "execa": "3.2.0",
37
37
  "fs-extra": "10.0.0",