Skip to content

Commit b496f68

Browse files
committed
Move next-swc Turborepo config to packages/next-swc
1 parent 5ae164c commit b496f68

File tree

2 files changed

+149
-144
lines changed

2 files changed

+149
-144
lines changed

packages/next-swc/turbo.json

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
{
2+
"extends": ["//"],
3+
"pipeline": {
4+
"build-native": {
5+
"inputs": [
6+
"../../.cargo/**",
7+
"crates/**",
8+
"../../Cargo.toml",
9+
"../../Cargo.lock",
10+
"../../.github/workflows/build_and_deploy.yml",
11+
"../../rust-toolchain"
12+
],
13+
"dependsOn": ["build-native"],
14+
"outputs": ["native/*.node"]
15+
},
16+
"build-native-release": {
17+
"inputs": [
18+
"../../.cargo/**",
19+
"crates/**",
20+
"../../**/Cargo.toml",
21+
"../../**/Cargo.lock",
22+
"../../.github/workflows/build_and_deploy.yml",
23+
"../../rust-toolchain"
24+
],
25+
"dependsOn": ["build-native-release"],
26+
"outputs": ["native/*.node"]
27+
},
28+
"build-native-no-plugin": {
29+
"inputs": [
30+
"../../.cargo/**",
31+
"crates/**",
32+
"../../**/Cargo.toml",
33+
"../../**/Cargo.lock",
34+
"../../.github/workflows/build_and_deploy.yml",
35+
"../../rust-toolchain"
36+
],
37+
"dependsOn": ["build-native-no-plugin"],
38+
"outputs": ["native/*.node"]
39+
},
40+
"build-native-no-plugin-woa": {
41+
"inputs": [
42+
"../../.cargo/**",
43+
"crates/**",
44+
"../../**/Cargo.toml",
45+
"../../**/Cargo.lock",
46+
"../../.github/workflows/build_and_deploy.yml",
47+
"../../rust-toolchain"
48+
],
49+
"dependsOn": ["build-native-no-plugin-woa"],
50+
"outputs": ["native/*.node"]
51+
},
52+
"build-native-no-plugin-woa-release": {
53+
"inputs": [
54+
"../../.cargo/**",
55+
"crates/**",
56+
"../../**/Cargo.toml",
57+
"../../**/Cargo.lock",
58+
"../../.github/workflows/build_and_deploy.yml",
59+
"../../rust-toolchain"
60+
],
61+
"dependsOn": ["build-native-no-plugin-woa-release"],
62+
"outputs": ["native/*.node"]
63+
},
64+
"build-wasm": {
65+
"inputs": [
66+
"../../.cargo/**",
67+
"crates/**",
68+
"../../**/Cargo.toml",
69+
"../../**/Cargo.lock",
70+
"../../.github/workflows/build_and_deploy.yml",
71+
"../../rust-toolchain"
72+
],
73+
"dependsOn": ["build-wasm"],
74+
"outputs": ["crates/wasm/pkg/*"]
75+
},
76+
"build-native-wasi": {
77+
"inputs": [
78+
"../../.cargo/**",
79+
"crates/**",
80+
"../../**/Cargo.toml",
81+
"../../**/Cargo.lock",
82+
"../../.github/workflows/build_and_deploy.yml",
83+
"../../rust-toolchain"
84+
],
85+
"dependsOn": ["^build-native-wasi"],
86+
"outputs": ["native/*"]
87+
},
88+
"cache-build-native": {
89+
"inputs": [
90+
"../../.cargo/**",
91+
"crates/**",
92+
"../../**/Cargo.toml",
93+
"../../**/Cargo.lock",
94+
"../../.github/workflows/build_and_deploy.yml",
95+
"../../rust-toolchain"
96+
],
97+
"dependsOn": ["cache-build-native"],
98+
"outputs": ["native/*.node"]
99+
},
100+
"rust-check": {
101+
"dependsOn": [
102+
"rust-check-fmt",
103+
"rust-check-clippy",
104+
"rust-check-napi-rustls"
105+
]
106+
},
107+
"rust-check-fmt": {
108+
"inputs": [
109+
"../../.cargo/**",
110+
"crates/**",
111+
"../../**/Cargo.toml",
112+
"../../**/Cargo.lock",
113+
"../../.github/workflows/build_and_deploy.yml",
114+
"../../rust-toolchain"
115+
],
116+
"cache": false
117+
},
118+
"rust-check-clippy": {
119+
"inputs": [
120+
"../../.cargo/**",
121+
"crates/**",
122+
"../../**/Cargo.toml",
123+
"../../**/Cargo.lock",
124+
"../../.github/workflows/build_and_deploy.yml",
125+
"../../rust-toolchain"
126+
]
127+
},
128+
"rust-check-napi-rustls": {
129+
"inputs": [
130+
"../../.cargo/**",
131+
"crates/**",
132+
"../../**/Cargo.toml",
133+
"../../**/Cargo.lock",
134+
"../../.github/workflows/build_and_deploy.yml",
135+
"../../rust-toolchain"
136+
]
137+
},
138+
"test-cargo-unit": {
139+
"inputs": [
140+
"../../.cargo/**",
141+
"crates/**",
142+
"../../**/Cargo.toml",
143+
"../../**/Cargo.lock",
144+
"../../.github/workflows/build_and_deploy.yml",
145+
"../../rust-toolchain"
146+
]
147+
}
148+
}
149+
}

turbo.json

Lines changed: 0 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -2,102 +2,6 @@
22
"$schema": "https://turborepo.org/schema.json",
33
"experimentalUI": true,
44
"pipeline": {
5-
"build-native": {
6-
"inputs": [
7-
"../../.cargo/**",
8-
"../../packages/next-swc/crates/**",
9-
"../../**/Cargo.toml",
10-
"../../**/Cargo.lock",
11-
"../../.github/workflows/build_and_deploy.yml",
12-
"../../rust-toolchain"
13-
],
14-
"dependsOn": ["^build-native"],
15-
"outputs": ["native/*.node"]
16-
},
17-
"build-native-release": {
18-
"inputs": [
19-
"../../.cargo/**",
20-
"../../packages/next-swc/crates/**",
21-
"../../**/Cargo.toml",
22-
"../../**/Cargo.lock",
23-
"../../.github/workflows/build_and_deploy.yml",
24-
"../../rust-toolchain"
25-
],
26-
"dependsOn": ["^build-native-release"],
27-
"outputs": ["native/*.node"]
28-
},
29-
"build-native-no-plugin": {
30-
"inputs": [
31-
"../../.cargo/**",
32-
"../../packages/next-swc/crates/**",
33-
"../../**/Cargo.toml",
34-
"../../**/Cargo.lock",
35-
"../../.github/workflows/build_and_deploy.yml",
36-
"../../rust-toolchain"
37-
],
38-
"dependsOn": ["^build-native-no-plugin"],
39-
"outputs": ["native/*.node"]
40-
},
41-
"build-native-no-plugin-woa": {
42-
"inputs": [
43-
"../../.cargo/**",
44-
"../../packages/next-swc/crates/**",
45-
"../../**/Cargo.toml",
46-
"../../**/Cargo.lock",
47-
"../../.github/workflows/build_and_deploy.yml",
48-
"../../rust-toolchain"
49-
],
50-
"dependsOn": ["^build-native-no-plugin-woa"],
51-
"outputs": ["native/*.node"]
52-
},
53-
"build-native-no-plugin-woa-release": {
54-
"inputs": [
55-
"../../.cargo/**",
56-
"../../packages/next-swc/crates/**",
57-
"../../**/Cargo.toml",
58-
"../../**/Cargo.lock",
59-
"../../.github/workflows/build_and_deploy.yml",
60-
"../../rust-toolchain"
61-
],
62-
"dependsOn": ["^build-native-no-plugin-woa-release"],
63-
"outputs": ["native/*.node"]
64-
},
65-
"build-wasm": {
66-
"inputs": [
67-
"../../.cargo/**",
68-
"../../packages/next-swc/crates/**",
69-
"../../**/Cargo.toml",
70-
"../../**/Cargo.lock",
71-
"../../.github/workflows/build_and_deploy.yml",
72-
"../../rust-toolchain"
73-
],
74-
"dependsOn": ["^build-wasm"],
75-
"outputs": ["crates/wasm/pkg/*"]
76-
},
77-
"build-native-wasi": {
78-
"inputs": [
79-
"../../.cargo/**",
80-
"../../packages/next-swc/crates/**",
81-
"../../**/Cargo.toml",
82-
"../../**/Cargo.lock",
83-
"../../.github/workflows/build_and_deploy.yml",
84-
"../../rust-toolchain"
85-
],
86-
"dependsOn": ["^build-native-wasi"],
87-
"outputs": ["native/*"]
88-
},
89-
"cache-build-native": {
90-
"inputs": [
91-
"../../.cargo/**",
92-
"../../packages/next-swc/crates/**",
93-
"../../**/Cargo.toml",
94-
"../../**/Cargo.lock",
95-
"../../.github/workflows/build_and_deploy.yml",
96-
"../../rust-toolchain"
97-
],
98-
"dependsOn": ["^cache-build-native"],
99-
"outputs": ["native/*.node"]
100-
},
1015
"build": {
1026
"dependsOn": ["^build"],
1037
"outputs": ["dist/**"]
@@ -108,54 +12,6 @@
10812
},
10913
"typescript": {},
11014
"//#typescript": {},
111-
"rust-check": {
112-
"dependsOn": [
113-
"^rust-check-fmt",
114-
"^rust-check-clippy",
115-
"^rust-check-napi-rustls"
116-
]
117-
},
118-
"rust-check-fmt": {
119-
"inputs": [
120-
"../../.cargo/**",
121-
"../../packages/next-swc/crates/**",
122-
"../../**/Cargo.toml",
123-
"../../**/Cargo.lock",
124-
"../../.github/workflows/build_and_deploy.yml",
125-
"../../rust-toolchain"
126-
],
127-
"cache": false
128-
},
129-
"rust-check-clippy": {
130-
"inputs": [
131-
"../../.cargo/**",
132-
"../../packages/next-swc/crates/**",
133-
"../../**/Cargo.toml",
134-
"../../**/Cargo.lock",
135-
"../../.github/workflows/build_and_deploy.yml",
136-
"../../rust-toolchain"
137-
]
138-
},
139-
"rust-check-napi-rustls": {
140-
"inputs": [
141-
"../../.cargo/**",
142-
"../../packages/next-swc/crates/**",
143-
"../../**/Cargo.toml",
144-
"../../**/Cargo.lock",
145-
"../../.github/workflows/build_and_deploy.yml",
146-
"../../rust-toolchain"
147-
]
148-
},
149-
"test-cargo-unit": {
150-
"inputs": [
151-
"../../.cargo/**",
152-
"../../packages/next-swc/crates/**",
153-
"../../**/Cargo.toml",
154-
"../../**/Cargo.lock",
155-
"../../.github/workflows/build_and_deploy.yml",
156-
"../../rust-toolchain"
157-
]
158-
},
15915
"//#get-test-timings": {
16016
"inputs": ["run-tests.js"],
16117
"outputs": ["test-timings.json"]

0 commit comments

Comments
 (0)