Created
June 19, 2024 14:09
-
-
Save karl-run/79e32cfa2ce779dcfcecb2de3a86a084 to your computer and use it in GitHub Desktop.
failed turborepo codemod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
karl@karltink ~/git/tsm-helse-arbeidsforhold$ npx @turbo/codemod@latest update main | |
? Where is the root of the repo to migrate? . | |
Upgrading turbo from 1.13.3 to 2.0.4 (11 required codemods) | |
(1/11) Running add-package-manager | |
INFO Set "packageManager" key in root "package.json" file... | |
MODIFIED package.json | |
Results: | |
┌──────────────┬────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├──────────────┼────────────┼───────────┼───────────┼────────┤ | |
│ package.json │ 'modified' │ 1 │ 1 │ 'None' │ | |
└──────────────┴────────────┴───────────┴───────────┴────────┘ | |
(2/11) Running create-turbo-config | |
INFO Migrating "package.json" "turbo" key to "turbo.json" file... | |
UNCHANGED turbo.json | |
UNCHANGED package.json | |
Results: | |
┌──────────────┬─────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├──────────────┼─────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
│ package.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
└──────────────┴─────────────┴───────────┴───────────┴────────┘ | |
(3/11) Running migrate-env-var-dependencies | |
INFO Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"... | |
UNCHANGED turbo.json | |
Results: | |
┌────────────┬─────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├────────────┼─────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
└────────────┴─────────────┴───────────┴───────────┴────────┘ | |
(4/11) Running stabilize-env-mode | |
INFO Rewriting `experimentalPassThroughEnv` and `experimentalGlobalPassThroughEnv` | |
UNCHANGED turbo.json | |
Results: | |
┌────────────┬─────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├────────────┼─────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
└────────────┴─────────────┴───────────┴───────────┴────────┘ | |
(5/11) Running transform-env-literals-to-wildcards | |
INFO Rewriting env vars to support wildcards | |
UNCHANGED turbo.json | |
Results: | |
┌────────────┬─────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├────────────┼─────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
└────────────┴─────────────┴───────────┴───────────┴────────┘ | |
(6/11) Running clean-globs | |
UNCHANGED turbo.json | |
Results: | |
┌────────────┬─────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├────────────┼─────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
└────────────┴─────────────┴───────────┴───────────┴────────┘ | |
(7/11) Running add-package-names | |
INFO Validating that each package has a unique "name"... | |
(8/11) Running migrate-dot-env | |
INFO Moving entries in `dotEnv` key in task config to `inputs` | |
UNCHANGED turbo.json | |
Results: | |
┌────────────┬─────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├────────────┼─────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
└────────────┴─────────────┴───────────┴───────────┴────────┘ | |
(9/11) Running rename-output-mode | |
INFO Renaming `outputMode` key in task config to `outputLogs` | |
UNCHANGED turbo.json | |
Results: | |
┌────────────┬─────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├────────────┼─────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
└────────────┴─────────────┴───────────┴───────────┴────────┘ | |
(10/11) Running rename-pipeline | |
INFO Renaming `pipeline` key in turbo.json to `tasks` | |
MODIFIED turbo.json | |
Results: | |
┌────────────┬────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├────────────┼────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'modified' │ 1 │ 1 │ 'None' │ | |
└────────────┴────────────┴───────────┴───────────┴────────┘ | |
(11/11) Running stabilize-ui | |
INFO Renaming `experimentalUI` key in turbo.json to `ui` | |
UNCHANGED turbo.json | |
Results: | |
┌────────────┬─────────────┬───────────┬───────────┬────────┐ | |
│ (index) │ action │ additions │ deletions │ error │ | |
├────────────┼─────────────┼───────────┼───────────┼────────┤ | |
│ turbo.json │ 'unchanged' │ 0 │ 0 │ 'None' │ | |
└────────────┴─────────────┴───────────┴───────────┴────────┘ | |
Upgrading turbo with yarn add turbo@latest --dev -W | |
Migration failed | |
Unable to upgrade turbo: Error: Command failed: yarn add turbo@latest --dev -W | |
warning workspace-aggregator-f8fe3706-fedb-47e9-b817-37ea921226d2 > api > eslint > @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead | |
warning workspace-aggregator-f8fe3706-fedb-47e9-b817-37ea921226d2 > api > eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead | |
warning workspace-aggregator-f8fe3706-fedb-47e9-b817-37ea921226d2 > api > eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported | |
warning workspace-aggregator-f8fe3706-fedb-47e9-b817-37ea921226d2 > api > eslint > file-entry-cache > flat-cache > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported | |
warning workspace-aggregator-f8fe3706-fedb-47e9-b817-37ea921226d2 > @repo/ui > @turbo/gen > node-plop > globby > glob@7.2.3: Glob versions prior to v9 are no longer supported | |
warning workspace-aggregator-f8fe3706-fedb-47e9-b817-37ea921226d2 > api > eslint > file-entry-cache > flat-cache > rimraf > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. | |
warning workspace-aggregator-f8fe3706-fedb-47e9-b817-37ea921226d2 > @repo/ui > @turbo/gen > node-plop > del > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported | |
warning workspace-aggregator-f8fe3706-fedb-47e9-b817-37ea921226d2 > @repo/ui > @turbo/gen > @turbo/workspaces > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported | |
error Couldn't find package "@repo/typescript-config@workspace:*" required by "@repo/tailwind-config@0.0.0" on the "npm" registry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/package.json b/package.json | |
index 88b9ee5..01dbd64 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -1,7 +1,7 @@ | |
{ | |
"name": "tsm-helse-arbeidsforhold", | |
"private": true, | |
- "packageManager": "yarn@4.2.2", | |
+ "packageManager": "yarn@1.22.19", | |
"engines": { | |
"node": "20" | |
}, | |
diff --git a/turbo.json b/turbo.json | |
index bca51d1..95480dc 100644 | |
--- a/turbo.json | |
+++ b/turbo.json | |
@@ -1,7 +1,8 @@ | |
{ | |
"$schema": "https://turbo.build/schema.json", | |
"globalDependencies": ["**/.env.*local"], | |
- "pipeline": { | |
+ "globalEnv": ["NODE_ENV"], | |
+ "tasks": { | |
"build": { | |
"dependsOn": ["^build"], | |
"outputs": [".next/**", "!.next/cache/**"] | |
@@ -13,6 +14,5 @@ | |
"cache": false, | |
"persistent": true | |
} | |
- }, | |
- "globalEnv": ["NODE_ENV"] | |
+ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment