@vercel/fs-detectors 6.3.0 → 6.4.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.
|
@@ -128,12 +128,12 @@ async function detectRailwayServices(options) {
|
|
|
128
128
|
if (cf.dirPath !== ".") {
|
|
129
129
|
serviceConfig.entrypoint = cf.dirPath;
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
cf.config.build
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (
|
|
136
|
-
serviceConfig.
|
|
131
|
+
if (cf.config.build?.buildCommand) {
|
|
132
|
+
serviceConfig.buildCommand = cf.config.build.buildCommand;
|
|
133
|
+
}
|
|
134
|
+
const railwayPreDeploy = cf.config.deploy?.preDeployCommand;
|
|
135
|
+
if (railwayPreDeploy) {
|
|
136
|
+
serviceConfig.preDeployCommand = Array.isArray(railwayPreDeploy) ? railwayPreDeploy.join(" && ") : railwayPreDeploy;
|
|
137
137
|
}
|
|
138
138
|
services[serviceName] = serviceConfig;
|
|
139
139
|
}
|
|
@@ -230,16 +230,6 @@ function deriveServiceName(dirPath) {
|
|
|
230
230
|
const segments = dirPath.split("/");
|
|
231
231
|
return segments[segments.length - 1];
|
|
232
232
|
}
|
|
233
|
-
function combineBuildCommand(buildCommand, preDeployCommand) {
|
|
234
|
-
const preDeploy = Array.isArray(preDeployCommand) ? preDeployCommand.join(" && ") : preDeployCommand;
|
|
235
|
-
if (preDeploy && buildCommand) {
|
|
236
|
-
return `${buildCommand} && ${preDeploy}`;
|
|
237
|
-
} else if (preDeploy) {
|
|
238
|
-
return preDeploy;
|
|
239
|
-
} else {
|
|
240
|
-
return buildCommand;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
233
|
function assignRoutePrefixes(services) {
|
|
244
234
|
const warnings = [];
|
|
245
235
|
const names = Object.keys(services);
|
package/dist/services/resolve.js
CHANGED
|
@@ -684,6 +684,7 @@ async function resolveConfiguredService(options) {
|
|
|
684
684
|
runtime,
|
|
685
685
|
buildCommand: config.buildCommand,
|
|
686
686
|
installCommand: config.installCommand,
|
|
687
|
+
preDeployCommand: config.preDeployCommand,
|
|
687
688
|
schedule: config.schedule,
|
|
688
689
|
handlerFunction: moduleAttrParsed?.attrName,
|
|
689
690
|
topics,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/fs-detectors",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.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/
|
|
24
|
-
"@vercel/frameworks": "3.26.
|
|
23
|
+
"@vercel/build-utils": "13.25.0",
|
|
24
|
+
"@vercel/frameworks": "3.26.1",
|
|
25
25
|
"@vercel/error-utils": "2.1.0",
|
|
26
|
-
"@vercel/
|
|
26
|
+
"@vercel/routing-utils": "6.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/glob": "7.2.0",
|