@vercel/fs-detectors 7.7.1 → 7.7.3

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.
@@ -153,6 +153,7 @@ var require_entrypoint = __commonJS({
153
153
  var import_constants2 = require_constants();
154
154
  var PYTHON_MODULE_ATTR_RE = /^([A-Za-z_][\w]*(?:\.[A-Za-z_][\w]*)*):([A-Za-z_][\w]*)$/;
155
155
  var NODE_FILE_ENTRYPOINT_RE = /^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))(?:[\w@+.-]+\/)*[\w@+.-]+\.[cm]?[jt]s$/;
156
+ var PYTHON_FILE_ENTRYPOINT_RE = /^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))(?:[\w@+.-]+\/)*[\w@+.-]+\.py$/;
156
157
  var NODE_DECLARATION_ENTRYPOINT_RE = /\.d\.[cm]?ts$/;
157
158
  function parsePyModuleAttrEntrypoint2(entrypoint) {
158
159
  const match = PYTHON_MODULE_ATTR_RE.exec(entrypoint);
@@ -167,11 +168,10 @@ var require_entrypoint = __commonJS({
167
168
  moduleName: modulePart
168
169
  };
169
170
  }
170
- var SCHEDULE_ENTRYPOINT_FORMS_HINT = 'Use a source file path like "jobs/nightly.ts" or a Python "module.path:function" reference.';
171
+ var SCHEDULE_ENTRYPOINT_FORMS_HINT = 'Use a source file path like "jobs/nightly.py" or "jobs/nightly.ts".';
171
172
  function parseScheduleEntrypoint(entrypoint) {
172
- const python = parsePyModuleAttrEntrypoint2(entrypoint);
173
- if (python) {
174
- return { runtime: "python", ...python };
173
+ if (PYTHON_FILE_ENTRYPOINT_RE.test(entrypoint)) {
174
+ return { runtime: "python", filePath: entrypoint };
175
175
  }
176
176
  if (NODE_FILE_ENTRYPOINT_RE.test(entrypoint) && !NODE_DECLARATION_ENTRYPOINT_RE.test(entrypoint)) {
177
177
  return { runtime: "node", filePath: entrypoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "7.7.1",
3
+ "version": "7.7.3",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,10 +20,10 @@
20
20
  "minimatch": "3.1.2",
21
21
  "semver": "6.3.1",
22
22
  "smol-toml": "1.5.2",
23
+ "@vercel/build-utils": "14.13.1",
23
24
  "@vercel/error-utils": "2.2.1",
24
25
  "@vercel/frameworks": "3.34.0",
25
26
  "@vercel/python-analysis": "0.14.0",
26
- "@vercel/build-utils": "14.12.0",
27
27
  "@vercel/routing-utils": "6.6.0"
28
28
  },
29
29
  "devDependencies": {
@@ -33,7 +33,7 @@
33
33
  "@types/node": "20.11.0",
34
34
  "@types/semver": "7.3.10",
35
35
  "vitest": "4.1.10",
36
- "@vercel-internals/runtimes": "1.1.3"
36
+ "@vercel-internals/runtimes": "1.1.5"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "node build.mjs",