@vercel/static-build 28.0.0 → 28.0.1-snapshot-c7f6a2a993e4
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.
- package/dist/index.js +13 -0
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -32316,12 +32316,15 @@ var require_detect_builders = __commonJS({
|
|
|
32316
32316
|
__export22(entrypoint_exports, {
|
|
32317
32317
|
isDockerfileEntrypoint: () => isDockerfileEntrypoint,
|
|
32318
32318
|
parsePyModuleAttrEntrypoint: () => parsePyModuleAttrEntrypoint2,
|
|
32319
|
+
parsePythonScheduleModule: () => parsePythonScheduleModule,
|
|
32319
32320
|
stripTrailingSlash: () => stripTrailingSlash
|
|
32320
32321
|
});
|
|
32321
32322
|
module22.exports = __toCommonJS22(entrypoint_exports);
|
|
32322
32323
|
var import_path22 = require("path");
|
|
32323
32324
|
var import_constants2 = require_constants3();
|
|
32324
32325
|
var PYTHON_MODULE_ATTR_RE = /^([A-Za-z_][\w]*(?:\.[A-Za-z_][\w]*)*):([A-Za-z_][\w]*)$/;
|
|
32326
|
+
var PYTHON_MODULE_RE = /^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*$/;
|
|
32327
|
+
var SOURCE_FILE_RE = /\.(?:py|[cm]?[jt]s)$/;
|
|
32325
32328
|
function parsePyModuleAttrEntrypoint2(entrypoint) {
|
|
32326
32329
|
const match = PYTHON_MODULE_ATTR_RE.exec(entrypoint);
|
|
32327
32330
|
if (!match)
|
|
@@ -32335,6 +32338,16 @@ var require_detect_builders = __commonJS({
|
|
|
32335
32338
|
moduleName: modulePart
|
|
32336
32339
|
};
|
|
32337
32340
|
}
|
|
32341
|
+
function parsePythonScheduleModule(entrypoint) {
|
|
32342
|
+
if (!PYTHON_MODULE_RE.test(entrypoint) || SOURCE_FILE_RE.test(entrypoint)) {
|
|
32343
|
+
return null;
|
|
32344
|
+
}
|
|
32345
|
+
const path6 = entrypoint.replace(/\./g, "/");
|
|
32346
|
+
return {
|
|
32347
|
+
moduleName: entrypoint,
|
|
32348
|
+
sourceFiles: [`${path6}/__init__.py`, `${path6}.py`]
|
|
32349
|
+
};
|
|
32350
|
+
}
|
|
32338
32351
|
var CONTAINER_ENTRYPOINT_BASENAMES = new Set(
|
|
32339
32352
|
import_constants2.CONTAINER_ENTRYPOINT_CANDIDATES.map((name) => name.toLowerCase())
|
|
32340
32353
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.1-snapshot-c7f6a2a993e4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"ts-morph": "12.0.0",
|
|
17
|
-
"@vercel/gatsby-plugin-vercel-builder": "2.2.86",
|
|
18
17
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.12",
|
|
18
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.2.87-snapshot-c7f6a2a993e4",
|
|
19
19
|
"@vercel/static-config": "3.4.4"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@vercel/build-utils": "15.4.
|
|
22
|
+
"@vercel/build-utils": "15.4.1-snapshot-c7f6a2a993e4"
|
|
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/build-utils": "15.4.0",
|
|
44
|
-
"@vercel/error-utils": "2.2.1",
|
|
45
43
|
"@vercel/frameworks": "3.35.0",
|
|
46
|
-
"@vercel/
|
|
47
|
-
"@vercel/
|
|
44
|
+
"@vercel/error-utils": "2.2.1",
|
|
45
|
+
"@vercel/build-utils": "15.4.1-snapshot-c7f6a2a993e4",
|
|
46
|
+
"@vercel/fs-detectors": "7.12.2-snapshot-c7f6a2a993e4",
|
|
47
|
+
"@vercel/routing-utils": "6.6.1"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "node ../../utils/build-builder.mjs",
|