⬆️(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", "$schema": "https://turbo.build/schema.json",
"pipeline": { "tasks": {
"build": { "build": {
"dependsOn": ["^build"], "dependsOn": [
"outputs": ["dist/**"] "^build"
],
"outputs": [
"dist/**"
]
}, },
"lint": { "lint": {
"outputs": [] "outputs": []
}, },
"dev": { "dev": {
"cache": false, "cache": false,
"dependsOn": ["^dev"] "dependsOn": [
"^dev"
]
}, },
"test": { "test": {
"outputs": [], "outputs": [],
"inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"] "inputs": [
"src/**/*.tsx",
"src/**/*.ts",
"test/**/*.ts",
"test/**/*.tsx"
]
}, },
"test-ci": { "test-ci": {
"env": [
"CIRCLE_*"
],
"outputs": [], "outputs": [],
"inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"] "inputs": [
"src/**/*.tsx",
"src/**/*.ts",
"test/**/*.ts",
"test/**/*.tsx"
]
}, },
"deploy": { "deploy": {
"dependsOn": ["build", "test", "lint"], "dependsOn": [
"build",
"test",
"lint"
],
"outputs": [] "outputs": []
}, },
"@openfun/cunningham-tokens#test": { "@openfun/cunningham-tokens#test": {
"dependsOn": ["build"] "dependsOn": [
"build"
]
} }
} }
} }