Skip to content

Commit cbbd428

Browse files
committed
Merge branch 'main' into 231208-typescript-module-resolution
2 parents 7760b3d + 19b704c commit cbbd428

File tree

1 file changed

+1
-44
lines changed

1 file changed

+1
-44
lines changed

scripts/prepare-preview-builds.jq

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,4 @@
66
# of the version. Technically we'd want to bump the non-prerelease portion as
77
# well if we wanted this to be SemVer-compliant, but it was simpler not to.
88
# This is just for testing, it doesn't need to strictly follow SemVer.
9-
.version |= split("-")[0] + "-preview-\($hash)" |
10-
11-
# The workspace dependencies are updated to point to the exact preview build
12-
# version, so that Yarn does not try to resolve a different version from the
13-
# registry.
14-
15-
if has("devDependencies") then
16-
.devDependencies |= with_entries(
17-
if .value | startswith("workspace:") then
18-
.key |= sub("@metamask/"; "@metamask-previews/") |
19-
.value |= sub("workspace:\\^"; "workspace:*")
20-
else
21-
.
22-
end
23-
)
24-
else
25-
.
26-
end |
27-
28-
if has("peerDependencies") then
29-
.peerDependencies |= with_entries(
30-
if .value | startswith("workspace:") then
31-
.key |= sub("@metamask/"; "@metamask-previews/") |
32-
.value |= sub("workspace:\\^"; "workspace:*")
33-
else
34-
.
35-
end
36-
)
37-
else
38-
.
39-
end |
40-
41-
if has("dependencies") then
42-
.dependencies |= with_entries(
43-
if .value | startswith("workspace:") then
44-
.key |= sub("@metamask/"; "@metamask-previews/") |
45-
.value |= sub("workspace:\\^"; "workspace:*")
46-
else
47-
.
48-
end
49-
)
50-
else
51-
.
52-
end
9+
.version |= split("-")[0] + "-preview-\($hash)"

0 commit comments

Comments
 (0)