@vercel/static-build 13.0.0 → 13.0.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -32276,6 +32276,7 @@ var require_detect_builders = __commonJS({
32276
32276
  var import_constants2 = require_constants3();
32277
32277
  var PYTHON_MODULE_ATTR_RE = /^([A-Za-z_][\w]*(?:\.[A-Za-z_][\w]*)*):([A-Za-z_][\w]*)$/;
32278
32278
  var NODE_FILE_ENTRYPOINT_RE = /^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))(?:[\w@+.-]+\/)*[\w@+.-]+\.[cm]?[jt]s$/;
32279
+ var PYTHON_FILE_ENTRYPOINT_RE = /^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))(?:[\w@+.-]+\/)*[\w@+.-]+\.py$/;
32279
32280
  var NODE_DECLARATION_ENTRYPOINT_RE = /\.d\.[cm]?ts$/;
32280
32281
  function parsePyModuleAttrEntrypoint2(entrypoint) {
32281
32282
  const match = PYTHON_MODULE_ATTR_RE.exec(entrypoint);
@@ -32290,11 +32291,10 @@ var require_detect_builders = __commonJS({
32290
32291
  moduleName: modulePart
32291
32292
  };
32292
32293
  }
32293
- var SCHEDULE_ENTRYPOINT_FORMS_HINT = 'Use a source file path like "jobs/nightly.ts" or a Python "module.path:function" reference.';
32294
+ var SCHEDULE_ENTRYPOINT_FORMS_HINT = 'Use a source file path like "jobs/nightly.py" or "jobs/nightly.ts".';
32294
32295
  function parseScheduleEntrypoint(entrypoint) {
32295
- const python = parsePyModuleAttrEntrypoint2(entrypoint);
32296
- if (python) {
32297
- return { runtime: "python", ...python };
32296
+ if (PYTHON_FILE_ENTRYPOINT_RE.test(entrypoint)) {
32297
+ return { runtime: "python", filePath: entrypoint };
32298
32298
  }
32299
32299
  if (NODE_FILE_ENTRYPOINT_RE.test(entrypoint) && !NODE_DECLARATION_ENTRYPOINT_RE.test(entrypoint)) {
32300
32300
  return { runtime: "node", filePath: entrypoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "13.0.0",
3
+ "version": "13.0.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -15,11 +15,11 @@
15
15
  "dependencies": {
16
16
  "ts-morph": "12.0.0",
17
17
  "@vercel/gatsby-plugin-vercel-analytics": "1.0.12",
18
- "@vercel/gatsby-plugin-vercel-builder": "2.2.61",
18
+ "@vercel/gatsby-plugin-vercel-builder": "2.2.62",
19
19
  "@vercel/static-config": "3.4.3"
20
20
  },
21
21
  "peerDependencies": {
22
- "@vercel/build-utils": "14.13.0"
22
+ "@vercel/build-utils": "14.13.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/aws-lambda": "8.10.64",
@@ -40,11 +40,11 @@
40
40
  "semver": "7.5.2",
41
41
  "tree-kill": "1.2.2",
42
42
  "vitest": "4.1.10",
43
- "@vercel/frameworks": "3.34.0",
43
+ "@vercel/build-utils": "14.13.1",
44
44
  "@vercel/error-utils": "2.2.1",
45
- "@vercel/build-utils": "14.13.0",
46
- "@vercel/fs-detectors": "7.7.2",
47
- "@vercel/routing-utils": "6.6.0"
45
+ "@vercel/frameworks": "3.34.0",
46
+ "@vercel/routing-utils": "6.6.0",
47
+ "@vercel/fs-detectors": "7.7.3"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "node ../../utils/build-builder.mjs",