@vercel/fs-detectors 7.12.0 → 7.12.1-snapshot-23cc3b13430e
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/detect-builders.js +0 -15
- package/package.json +5 -5
package/dist/detect-builders.js
CHANGED
|
@@ -156,19 +156,14 @@ var require_entrypoint = __commonJS({
|
|
|
156
156
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
157
157
|
var entrypoint_exports = {};
|
|
158
158
|
__export2(entrypoint_exports, {
|
|
159
|
-
SCHEDULE_ENTRYPOINT_FORMS_HINT: () => SCHEDULE_ENTRYPOINT_FORMS_HINT,
|
|
160
159
|
isDockerfileEntrypoint: () => isDockerfileEntrypoint,
|
|
161
160
|
parsePyModuleAttrEntrypoint: () => parsePyModuleAttrEntrypoint2,
|
|
162
|
-
parseScheduleEntrypoint: () => parseScheduleEntrypoint,
|
|
163
161
|
stripTrailingSlash: () => stripTrailingSlash
|
|
164
162
|
});
|
|
165
163
|
module2.exports = __toCommonJS2(entrypoint_exports);
|
|
166
164
|
var import_path2 = require("path");
|
|
167
165
|
var import_constants2 = require_constants();
|
|
168
166
|
var PYTHON_MODULE_ATTR_RE = /^([A-Za-z_][\w]*(?:\.[A-Za-z_][\w]*)*):([A-Za-z_][\w]*)$/;
|
|
169
|
-
var NODE_FILE_ENTRYPOINT_RE = /^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))(?:[\w@+.-]+\/)*[\w@+.-]+\.[cm]?[jt]s$/;
|
|
170
|
-
var PYTHON_FILE_ENTRYPOINT_RE = /^(?!\/)(?!.*(?:^|\/)\.\.?(?:\/|$))(?:[\w@+.-]+\/)*[\w@+.-]+\.py$/;
|
|
171
|
-
var NODE_DECLARATION_ENTRYPOINT_RE = /\.d\.[cm]?ts$/;
|
|
172
167
|
function parsePyModuleAttrEntrypoint2(entrypoint) {
|
|
173
168
|
const match = PYTHON_MODULE_ATTR_RE.exec(entrypoint);
|
|
174
169
|
if (!match)
|
|
@@ -182,16 +177,6 @@ var require_entrypoint = __commonJS({
|
|
|
182
177
|
moduleName: modulePart
|
|
183
178
|
};
|
|
184
179
|
}
|
|
185
|
-
var SCHEDULE_ENTRYPOINT_FORMS_HINT = 'Use a source file path like "jobs/nightly.py" or "jobs/nightly.ts".';
|
|
186
|
-
function parseScheduleEntrypoint(entrypoint) {
|
|
187
|
-
if (PYTHON_FILE_ENTRYPOINT_RE.test(entrypoint)) {
|
|
188
|
-
return { runtime: "python", filePath: entrypoint };
|
|
189
|
-
}
|
|
190
|
-
if (NODE_FILE_ENTRYPOINT_RE.test(entrypoint) && !NODE_DECLARATION_ENTRYPOINT_RE.test(entrypoint)) {
|
|
191
|
-
return { runtime: "node", filePath: entrypoint };
|
|
192
|
-
}
|
|
193
|
-
return null;
|
|
194
|
-
}
|
|
195
180
|
var CONTAINER_ENTRYPOINT_BASENAMES = new Set(
|
|
196
181
|
import_constants2.CONTAINER_ENTRYPOINT_CANDIDATES.map((name) => name.toLowerCase())
|
|
197
182
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/fs-detectors",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.1-snapshot-23cc3b13430e",
|
|
4
4
|
"description": "Vercel filesystem detectors",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"minimatch": "3.1.2",
|
|
21
21
|
"semver": "6.3.1",
|
|
22
22
|
"smol-toml": "1.5.2",
|
|
23
|
-
"@vercel/build-utils": "15.
|
|
23
|
+
"@vercel/build-utils": "15.4.0-snapshot-23cc3b13430e",
|
|
24
24
|
"@vercel/frameworks": "3.35.0",
|
|
25
25
|
"@vercel/error-utils": "2.2.1",
|
|
26
|
-
"@vercel/
|
|
27
|
-
"@vercel/
|
|
26
|
+
"@vercel/routing-utils": "6.6.1",
|
|
27
|
+
"@vercel/python-analysis": "0.15.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/glob": "7.2.0",
|
|
@@ -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.2.
|
|
36
|
+
"@vercel-internals/runtimes": "1.2.9"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "node build.mjs",
|