@vercel/fs-detectors 5.4.16 → 5.5.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.
@@ -73,15 +73,17 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
73
73
  })
74
74
  ]);
75
75
  if (monorepoManager === "turbo") {
76
- const [turboJSONBuf, packageJSONBuf] = await Promise.all([
76
+ const [turboJSONBuf, turboJSONCBuf, packageJSONBuf] = await Promise.all([
77
77
  detectorFilesystem.readFile("turbo.json").catch(() => null),
78
+ detectorFilesystem.readFile("turbo.jsonc").catch(() => null),
78
79
  detectorFilesystem.readFile("package.json").catch(() => null)
79
80
  ]);
80
81
  let hasBuildPipeline = false;
81
82
  let hasTurboTasks = false;
82
83
  let turboSemVer = null;
83
- if (turboJSONBuf !== null) {
84
- const turboJSON = import_json5.default.parse(turboJSONBuf.toString("utf-8"));
84
+ const turboConfigBuf = turboJSONBuf || turboJSONCBuf;
85
+ if (turboConfigBuf !== null) {
86
+ const turboJSON = import_json5.default.parse(turboConfigBuf.toString("utf-8"));
85
87
  hasTurboTasks = "tasks" in (turboJSON || {});
86
88
  if (turboJSON?.pipeline?.build || turboJSON?.tasks?.build) {
87
89
  hasBuildPipeline = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "5.4.16",
3
+ "version": "5.5.0",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "@types/minimatch": "3.0.5",
31
31
  "@types/node": "14.18.33",
32
32
  "@types/semver": "7.3.10",
33
- "@vercel/build-utils": "11.0.2",
33
+ "@vercel/build-utils": "12.1.0",
34
34
  "jest-junit": "16.0.0",
35
35
  "typescript": "4.9.5"
36
36
  },