Skip to content

Commit 1045a9e

Browse files
committed
fix copybara transformations
1 parent 951c286 commit 1045a9e

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

copy.bara.sky

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,33 @@ ${GITHUB_PR_BODY}
3131
'''
3232
),
3333
origin_files = glob([
34-
"javascript/on-demand/**",
35-
"rust/switchboard-on-demand/**",
36-
"rust/switchboard-on-demand-client/**"
34+
"solana/**"
3735
]),
3836
destination_files = glob([
3937
"javascript/on-demand/**",
4038
"rust/switchboard-on-demand/**",
4139
"rust/switchboard-on-demand-client/**"
4240
]),
41+
transformations =
42+
core.reverse([
43+
core.replace(
44+
before = "workspace:*",
45+
after = "latest",
46+
paths = glob(["**/package.json"])
47+
),
48+
# move the solana SDKs to /solana/original-paths
49+
core.move(
50+
before = "javascript/on-demand",
51+
after = "solana/javascript/on-demand"
52+
),
53+
core.move(
54+
before = "rust/switchboard-on-demand",
55+
after = "solana/rust/switchboard-on-demand"
56+
),
57+
core.move(
58+
before = "rust/switchboard-on-demand-client",
59+
after = "solana/rust/switchboard-on-demand-client"
60+
)
61+
]),
4362
authoring = authoring.pass_thru("Copybara <[email protected]>")
4463
)

0 commit comments

Comments
 (0)