@vercel/fs-detectors 5.19.0 → 6.0.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.
@@ -6,6 +6,7 @@ import type { PackageJson, Builder, BuilderFunctions, ExperimentalServices, Proj
6
6
  export declare const REGEX_MIDDLEWARE_FILES = "middleware.[jt]s";
7
7
  /**
8
8
  * Pattern for files that the Vercel platform cares about separately from frameworks.
9
+ * These files are excluded from static file serving.
9
10
  */
10
11
  export declare const REGEX_VERCEL_PLATFORM_FILES: string;
11
12
  /**
@@ -46,7 +46,19 @@ var import_is_official_runtime = require("./is-official-runtime");
46
46
  var import_build_utils = require("@vercel/build-utils");
47
47
  var import_get_services_builders = require("./services/get-services-builders");
48
48
  const REGEX_MIDDLEWARE_FILES = "middleware.[jt]s";
49
- const REGEX_VERCEL_PLATFORM_FILES = `api/**,package.json,${REGEX_MIDDLEWARE_FILES}`;
49
+ const REGEX_VERCEL_PLATFORM_FILES = [
50
+ "api/**",
51
+ "node_modules/**",
52
+ REGEX_MIDDLEWARE_FILES,
53
+ "package.json",
54
+ "package-lock.json",
55
+ "yarn.lock",
56
+ "pnpm-lock.yaml",
57
+ "bun.lock",
58
+ "bun.lockb",
59
+ ".gitignore",
60
+ "README.md"
61
+ ].join(",");
50
62
  const REGEX_NON_VERCEL_PLATFORM_FILES = `!{${REGEX_VERCEL_PLATFORM_FILES}}`;
51
63
  const slugToFramework = new Map(
52
64
  import_frameworks.frameworkList.map((f) => [f.slug, f])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "5.19.0",
3
+ "version": "6.0.0",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,9 +21,9 @@
21
21
  "semver": "6.3.1",
22
22
  "smol-toml": "1.5.2",
23
23
  "@vercel/error-utils": "2.0.3",
24
- "@vercel/build-utils": "13.19.0",
24
+ "@vercel/routing-utils": "6.1.1",
25
25
  "@vercel/frameworks": "3.24.1",
26
- "@vercel/routing-utils": "6.1.1"
26
+ "@vercel/build-utils": "13.20.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/glob": "7.2.0",