@vercel/fs-detectors 5.15.2 → 5.16.0
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/services/resolve.js +3 -4
- package/package.json +4 -4
package/dist/services/resolve.js
CHANGED
|
@@ -384,7 +384,7 @@ async function resolveConfiguredService(options) {
|
|
|
384
384
|
} = options;
|
|
385
385
|
const type = config.type || "web";
|
|
386
386
|
const rawEntrypoint = config.entrypoint;
|
|
387
|
-
const moduleAttrParsed = typeof rawEntrypoint === "string"
|
|
387
|
+
const moduleAttrParsed = typeof rawEntrypoint === "string" ? parsePyModuleAttrEntrypoint(rawEntrypoint) : null;
|
|
388
388
|
const routingResult = resolveServiceRoutingConfig(name, config);
|
|
389
389
|
if (routingResult.error) {
|
|
390
390
|
throw new Error(routingResult.error.message);
|
|
@@ -533,10 +533,9 @@ async function resolveAllConfiguredServices(services, fs, routePrefixSource = "c
|
|
|
533
533
|
continue;
|
|
534
534
|
}
|
|
535
535
|
let resolvedEntrypoint;
|
|
536
|
-
const serviceType = serviceConfig.type || "web";
|
|
537
536
|
if (typeof serviceConfig.entrypoint === "string") {
|
|
538
|
-
const moduleAttr =
|
|
539
|
-
const entrypointToResolve = moduleAttr
|
|
537
|
+
const moduleAttr = parsePyModuleAttrEntrypoint(serviceConfig.entrypoint);
|
|
538
|
+
const entrypointToResolve = moduleAttr?.filePath ?? serviceConfig.entrypoint;
|
|
540
539
|
const resolvedPath = await resolveEntrypointPath({
|
|
541
540
|
fs,
|
|
542
541
|
serviceName: name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/fs-detectors",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.16.0",
|
|
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": "13.15.0",
|
|
24
|
+
"@vercel/error-utils": "2.0.3",
|
|
23
25
|
"@vercel/frameworks": "3.24.0",
|
|
24
|
-
"@vercel/
|
|
25
|
-
"@vercel/routing-utils": "6.1.1",
|
|
26
|
-
"@vercel/error-utils": "2.0.3"
|
|
26
|
+
"@vercel/routing-utils": "6.1.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/glob": "7.2.0",
|