⬆️(global) upgrade to turbo 2.x

Run `npx @turbo/codemod migrate`
Then allow all env vars prefixed by "CIRCLE_" for the task "test-ci". Check
turbo documention about Environment strict mode to understand
why we need to do that.

https://turbo.build/blog/turbo-2-0
This commit is contained in:
jbpenrath
2024-06-10 10:26:29 +02:00
committed by Jean-Baptiste PENRATH
parent 3ef2d8b0d0
commit 99f46225c8

View File

@@ -1,31 +1,56 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
},
"lint": {
"outputs": []
},
"dev": {
"cache": false,
"dependsOn": ["^dev"]
"dependsOn": [
"^dev"
]
},
"test": {
"outputs": [],
"inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"]
"inputs": [
"src/**/*.tsx",
"src/**/*.ts",
"test/**/*.ts",
"test/**/*.tsx"
]
},
"test-ci": {
"env": [
"CIRCLE_*"
],
"outputs": [],
"inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"]
"inputs": [
"src/**/*.tsx",
"src/**/*.ts",
"test/**/*.ts",
"test/**/*.tsx"
]
},
"deploy": {
"dependsOn": ["build", "test", "lint"],
"dependsOn": [
"build",
"test",
"lint"
],
"outputs": []
},
"@openfun/cunningham-tokens#test": {
"dependsOn": ["build"]
"dependsOn": [
"build"
]
}
}
}