@vercel/fs-detectors 5.14.1 → 5.14.3
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.
|
@@ -61,6 +61,15 @@ function supportsRootCommand(turboSemVer) {
|
|
|
61
61
|
}
|
|
62
62
|
return !import_semver.default.intersects(turboSemVer, "<1.8.0");
|
|
63
63
|
}
|
|
64
|
+
function supportsFilter(turboSemVer) {
|
|
65
|
+
if (!turboSemVer) {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
if (!import_semver.default.validRange(turboSemVer)) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
return !import_semver.default.intersects(turboSemVer, "<=1.1.0");
|
|
72
|
+
}
|
|
64
73
|
async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRoot, detectorFilesystem) {
|
|
65
74
|
const [monorepoManager, packageManager] = await Promise.all([
|
|
66
75
|
(0, import_detect_framework.detectFramework)({
|
|
@@ -111,8 +120,10 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
|
|
|
111
120
|
if (projectPath) {
|
|
112
121
|
if (supportsRootCommand(turboSemVer)) {
|
|
113
122
|
buildCommand = `turbo run build`;
|
|
114
|
-
} else {
|
|
123
|
+
} else if (supportsFilter(turboSemVer)) {
|
|
115
124
|
buildCommand = `cd ${relativeToRoot} && turbo run build --filter={${projectPath}}...`;
|
|
125
|
+
} else {
|
|
126
|
+
buildCommand = `cd ${relativeToRoot} && turbo run build --scope=${projectName}`;
|
|
116
127
|
}
|
|
117
128
|
}
|
|
118
129
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/fs-detectors",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.3",
|
|
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/
|
|
23
|
+
"@vercel/build-utils": "13.13.0",
|
|
24
24
|
"@vercel/error-utils": "2.0.3",
|
|
25
|
-
"@vercel/
|
|
26
|
-
"@vercel/
|
|
25
|
+
"@vercel/routing-utils": "6.1.1",
|
|
26
|
+
"@vercel/frameworks": "3.23.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/glob": "7.2.0",
|