@vercel/fs-detectors 5.15.0 → 5.15.1

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.
@@ -310,6 +310,14 @@ async function maybeGetApiBuilder(fileName, apiMatches, options) {
310
310
  return null;
311
311
  }
312
312
  }
313
+ const nodeExtensions = [".js", ".mjs", ".ts", ".tsx"];
314
+ if (process.env.VERCEL_NODE_FILTER_ENTRYPOINTS === "1" && nodeExtensions.some((ext) => fileName.endsWith(ext)) && options.workPath) {
315
+ const fsPath = (0, import_path.join)(options.workPath, fileName);
316
+ const isEntrypoint = await (0, import_build_utils.isNodeEntrypoint)({ fsPath });
317
+ if (!isEntrypoint) {
318
+ return null;
319
+ }
320
+ }
313
321
  const match = apiMatches.find(({ src = "**" }) => {
314
322
  return src === fileName || (0, import_minimatch.default)(fileName, src);
315
323
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "5.15.0",
3
+ "version": "5.15.1",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "minimatch": "3.1.2",
21
21
  "semver": "6.3.1",
22
22
  "smol-toml": "1.5.2",
23
- "@vercel/build-utils": "13.14.0",
23
+ "@vercel/build-utils": "13.14.1",
24
24
  "@vercel/error-utils": "2.0.3",
25
25
  "@vercel/frameworks": "3.24.0",
26
26
  "@vercel/routing-utils": "6.1.1"