Skip to content

Commit 4828c79

Browse files
authored
Update turborepo to 2.3.4 (#1217)
1 parent 3e8d9d2 commit 4828c79

File tree

5 files changed

+77
-52
lines changed

5 files changed

+77
-52
lines changed

.buildkite/pipeline.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ steps:
7676
COVERAGE: false
7777
commands:
7878
- echo "--- Install dependencies"
79-
- PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn install --immutable
80-
- PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers npx playwright install
79+
- yarn install --immutable
8180
- echo "+++ Run Browser integration tests :pray:"
82-
- PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers yarn turbo run --filter=browser-integration-tests test
81+
- yarn turbo run --filter=@internal/browser-integration-tests test
8382
retry:
8483
automatic:
8584
- exit_status: '*'
@@ -104,7 +103,7 @@ steps:
104103
- echo "+++ Run tests"
105104
- yarn run -T core lint
106105
- yarn run -T core test
107-
- yarn turbo run --filter=core-integration-tests lint
106+
- yarn turbo run --filter=@internal/core-integration-tests lint
108107
plugins:
109108
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v2.0.0:
110109
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}"
@@ -118,8 +117,8 @@ steps:
118117
- echo "--- Install dependencies"
119118
- PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 yarn install --immutable
120119
- echo "+++ Run QA"
121-
- yarn turbo run --filter=analytics-generic-utils lint
122-
- yarn turbo run --filter=analytics-generic-utils test
120+
- yarn turbo run --filter=@segment/analytics-generic-utils lint
121+
- yarn turbo run --filter=@segment/analytics-generic-utils test
123122
plugins:
124123
- ssh://[email protected]/segmentio/cache-buildkite-plugin#v2.0.0:
125124
key: "v1.1-cache-dev-{{ checksum 'yarn.lock' }}"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ jobs:
7474
key: ${{ runner.os }}-turbo-${{ github.sha }}
7575
restore-keys: |
7676
${{ runner.os }}-turbo-
77-
- run: yarn turbo run --filter='consent-tools-integration-tests' test:int
77+
- run: yarn turbo run --filter='./packages/consent/consent-tools-integration-tests' test:int

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"prettier": "^2.6.2",
6363
"ts-jest": "^29.1.1",
6464
"ts-node": "^10.8.0",
65-
"turbo": "^1.10.14",
65+
"turbo": "^2.3.4",
6666
"typescript": "^4.7.0",
6767
"webpack": "^5.76.0",
6868
"webpack-dev-server": "^4.15.1"

turbo.json

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,50 @@
11
{
22
"$schema": "https://turborepo.org/schema.json",
3-
"pipeline": {
3+
"tasks": {
44
"build": {
5-
"dependsOn": ["^build"],
5+
"dependsOn": [
6+
"^build"
7+
],
68
"inputs": [
79
"**/tsconfig*.json",
810
"**/babel.config*",
911
"**/webpack.config*",
1012
"**/*.ts",
1113
"**/*.tsx",
12-
"!**/*.generated.*/*",
13-
"!**/__tests__/**",
14+
"!*/**/*.generated.*/*",
15+
"!*/**/__tests__/**",
1416
"!src/**/test-helpers/**"
1517
],
16-
"outputs": ["**/dist/**", ".next/**"]
18+
"outputs": [
19+
"**/dist/**",
20+
".next/**"
21+
]
1722
},
1823
"build:esm": {
19-
"dependsOn": ["^build:esm"],
24+
"dependsOn": [
25+
"^build:esm"
26+
],
2027
"inputs": [
2128
"**/tsconfig*.json",
2229
"**/*.ts",
2330
"**/*.tsx",
24-
"!**/__tests__/**",
31+
"!*/**/__tests__/**",
2532
"!src/**/test-helpers/**"
2633
],
27-
"outputs": ["**/dist/esm/**"]
34+
"outputs": [
35+
"**/dist/esm/**"
36+
]
2837
},
2938
"test": {
30-
"dependsOn": ["build"]
39+
"env": ["COVERAGE"],
40+
"dependsOn": [
41+
"build"
42+
]
3143
},
3244
"test:int": {
33-
"dependsOn": ["build"]
45+
"dependsOn": [
46+
"build"
47+
]
3448
},
3549
"tsc": {
3650
"cache": false
@@ -40,18 +54,30 @@
4054
},
4155
"watch": {
4256
"cache": false,
43-
"outputs": ["dist/**"]
57+
"outputs": [
58+
"dist/**"
59+
]
4460
},
4561
"lint": {
46-
"dependsOn": ["build"],
47-
"inputs": ["**/tsconfig*.json", "**/*.ts", "**/*.tsx"],
62+
"dependsOn": [
63+
"build"
64+
],
65+
"inputs": [
66+
"**/tsconfig*.json",
67+
"**/*.ts",
68+
"**/*.tsx"
69+
],
4870
"outputs": []
4971
},
5072
"test:cloudflare-workers": {
51-
"dependsOn": ["build"]
73+
"dependsOn": [
74+
"build"
75+
]
5276
},
5377
"test:perf-and-durability": {
54-
"dependsOn": ["build"]
78+
"dependsOn": [
79+
"build"
80+
]
5581
}
5682
}
5783
}

yarn.lock

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9560,7 +9560,7 @@ __metadata:
95609560
prettier: ^2.6.2
95619561
ts-jest: ^29.1.1
95629562
ts-node: ^10.8.0
9563-
turbo: ^1.10.14
9563+
turbo: ^2.3.4
95649564
typescript: ^4.7.0
95659565
webpack: ^5.76.0
95669566
webpack-dev-server: ^4.15.1
@@ -23942,58 +23942,58 @@ __metadata:
2394223942
languageName: node
2394323943
linkType: hard
2394423944

23945-
"turbo-darwin-64@npm:1.10.14":
23946-
version: 1.10.14
23947-
resolution: "turbo-darwin-64@npm:1.10.14"
23945+
"turbo-darwin-64@npm:2.3.4":
23946+
version: 2.3.4
23947+
resolution: "turbo-darwin-64@npm:2.3.4"
2394823948
conditions: os=darwin & cpu=x64
2394923949
languageName: node
2395023950
linkType: hard
2395123951

23952-
"turbo-darwin-arm64@npm:1.10.14":
23953-
version: 1.10.14
23954-
resolution: "turbo-darwin-arm64@npm:1.10.14"
23952+
"turbo-darwin-arm64@npm:2.3.4":
23953+
version: 2.3.4
23954+
resolution: "turbo-darwin-arm64@npm:2.3.4"
2395523955
conditions: os=darwin & cpu=arm64
2395623956
languageName: node
2395723957
linkType: hard
2395823958

23959-
"turbo-linux-64@npm:1.10.14":
23960-
version: 1.10.14
23961-
resolution: "turbo-linux-64@npm:1.10.14"
23959+
"turbo-linux-64@npm:2.3.4":
23960+
version: 2.3.4
23961+
resolution: "turbo-linux-64@npm:2.3.4"
2396223962
conditions: os=linux & cpu=x64
2396323963
languageName: node
2396423964
linkType: hard
2396523965

23966-
"turbo-linux-arm64@npm:1.10.14":
23967-
version: 1.10.14
23968-
resolution: "turbo-linux-arm64@npm:1.10.14"
23966+
"turbo-linux-arm64@npm:2.3.4":
23967+
version: 2.3.4
23968+
resolution: "turbo-linux-arm64@npm:2.3.4"
2396923969
conditions: os=linux & cpu=arm64
2397023970
languageName: node
2397123971
linkType: hard
2397223972

23973-
"turbo-windows-64@npm:1.10.14":
23974-
version: 1.10.14
23975-
resolution: "turbo-windows-64@npm:1.10.14"
23973+
"turbo-windows-64@npm:2.3.4":
23974+
version: 2.3.4
23975+
resolution: "turbo-windows-64@npm:2.3.4"
2397623976
conditions: os=win32 & cpu=x64
2397723977
languageName: node
2397823978
linkType: hard
2397923979

23980-
"turbo-windows-arm64@npm:1.10.14":
23981-
version: 1.10.14
23982-
resolution: "turbo-windows-arm64@npm:1.10.14"
23980+
"turbo-windows-arm64@npm:2.3.4":
23981+
version: 2.3.4
23982+
resolution: "turbo-windows-arm64@npm:2.3.4"
2398323983
conditions: os=win32 & cpu=arm64
2398423984
languageName: node
2398523985
linkType: hard
2398623986

23987-
"turbo@npm:^1.10.14":
23988-
version: 1.10.14
23989-
resolution: "turbo@npm:1.10.14"
23987+
"turbo@npm:^2.3.4":
23988+
version: 2.3.4
23989+
resolution: "turbo@npm:2.3.4"
2399023990
dependencies:
23991-
turbo-darwin-64: 1.10.14
23992-
turbo-darwin-arm64: 1.10.14
23993-
turbo-linux-64: 1.10.14
23994-
turbo-linux-arm64: 1.10.14
23995-
turbo-windows-64: 1.10.14
23996-
turbo-windows-arm64: 1.10.14
23991+
turbo-darwin-64: 2.3.4
23992+
turbo-darwin-arm64: 2.3.4
23993+
turbo-linux-64: 2.3.4
23994+
turbo-linux-arm64: 2.3.4
23995+
turbo-windows-64: 2.3.4
23996+
turbo-windows-arm64: 2.3.4
2399723997
dependenciesMeta:
2399823998
turbo-darwin-64:
2399923999
optional: true
@@ -24009,7 +24009,7 @@ __metadata:
2400924009
optional: true
2401024010
bin:
2401124011
turbo: bin/turbo
24012-
checksum: 219d245bb5cc32a9f76b136b81e86e179228d93a44cab4df3e3d487a55dd2688b5b85f4d585b66568ac53166145352399dd2d7ed0cd47f1aae63d08beb814ebb
24012+
checksum: b0768e29103fa08d18ae89859084b8ee4306076484072986995ea59417c3d694f4bfc4e45e825c03e5a7ff82873d245a8941873e864cf357eaa29eb957a47164
2401324013
languageName: node
2401424014
linkType: hard
2401524015

0 commit comments

Comments
 (0)