
text for searching
❯ pnpm turbo lintturbo 2.6.3
turbo_json_parse_error
× Failed to parse turbo.json. ╰─▶ × Found an unknown key `globalDependencies`. ╭─[turbo.json:5:3] 4 │ // https://turbo.build/repo/docs/core-concepts/caching/file-inputs#specifying-additional-inputs 5 │ "globalDependencies": [ · ──────────────────── 6 │ "pnpm-lock.yaml", ╰────idk why I’m receiving this error, since I think I’ve spelled it correctly? and the docs agree?
Docs: https://turborepo.com/docs/reference/configuration#globaldependencies
And my turbo.json:
my turbo.json
{ // Additive to package.json and turbo.json // // https://turbo.build/repo/docs/core-concepts/caching/file-inputs#specifying-additional-inputs "globalDependencies": [ "pnpm-lock.yaml", "patches", ".github/workflows/ci.yml", ".github/workflows/release.yml", ".github/workflows/push-dish.yml", ".github/workflows/deploy-preview.yml" ], "tasks": { ///////////////////////////////////////////////// ///////////////////////////////////////////////// // // Local Dev // ///////////////////////////////////////////////// ///////////////////////////////////////////////// "dev": { "dependsOn": ["^dev"], "cache": false }, "start": { "dependsOn": ["_syncPnpm", "^build"], "outputs": [], "cache": false, "persistent": true },
///////////////////////////////////////////////// ///////////////////////////////////////////////// // // C.I. / C.D. // ///////////////////////////////////////////////// ///////////////////////////////////////////////// "build": { "outputs": ["dist/**", "declarations/**"], "dependsOn": ["_syncPnpm"] }, "build:app": { "outputs": ["dist/**"], "dependsOn": ["_syncPnpm"] }, "_syncPnpm": { "dependsOn": ["^build"], "cache": false }, "test:node": { "outputs": [], "dependsOn": ["_syncPnpm", "^build"] }, "test:ember": { "env": ["CI_BROWSER", "EMBER_TRY_CURRENT_SCENARIO", "EMBROIDER_TEST_SETUP_OPTIONS"], "dependsOn": ["_syncPnpm", "^build"] },
///////////////////////////////////////////////// ///////////////////////////////////////////////// // // Quality Checks // ///////////////////////////////////////////////// ///////////////////////////////////////////////// "_:lint": { "outputs": [], "dependsOn": [ "lint:js", "lint:hbs", "lint:prettier", "lint:types", "lint:package", "lint:published-types" ] }, "lint:js": { "outputs": [], "dependsOn": ["^build"] }, "lint:hbs": { "outputs": [] }, "lint:prettier": { "outputs": [] }, "lint:types": { "outputs": [], "dependsOn": ["_syncPnpm"] }, "lint:package": { "outputs": [], "dependsOn": ["build"] }, "lint:published-types": { "outputs": [], "dependsOn": ["build"] },
"_:lint:fix": { "cache": false, "dependsOn": ["lint:js:fix", "lint:prettier:fix", "lint:hbs:fix"] }, // Prettier can alter files too, so let's prevent race conditions for multiple // writing to the same files. "lint:js:fix": { "cache": false }, "lint:hbs:fix": { "cache": false }, "lint:prettier:fix": { "cache": false, "dependsOn": ["lint:js:fix", "lint:hbs:fix"] } }}
I potentially thought this might be a jsonc → json mistake, but removing the leading comments doesn’t change the error:
❯ pnpm turbo lintturbo 2.6.3
turbo_json_parse_error
× Failed to parse turbo.json.╰─▶ × Found an unknown key globalDependencies.╭─[turbo.json:2:3]1 │ {2 │ “globalDependencies”: [· ────────────────────3 │ “pnpm-lock.yaml”,╰────
After upgrading to 2.70
❯ pnpm turbo lintturbo 2.7.0
turbo_json_parse_error
× Failed to parse turbo.json.╰─▶ × Found an unknown key globalDependencies.╭─[turbo.json:2:3]1 │ {2 │ “globalDependencies”: [· ────────────────────3 │ “pnpm-lock.yaml”,╰────