Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove unnecessary steps from prepare preview builds script #4461

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 1 addition & 44 deletions scripts/prepare-preview-builds.jq
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,4 @@
# of the version. Technically we'd want to bump the non-prerelease portion as
# well if we wanted this to be SemVer-compliant, but it was simpler not to.
# This is just for testing, it doesn't need to strictly follow SemVer.
.version |= split("-")[0] + "-preview-\($hash)" |

# The workspace dependencies are updated to point to the exact preview build
# version, so that Yarn does not try to resolve a different version from the
# registry.

if has("devDependencies") then
.devDependencies |= with_entries(
if .value | startswith("workspace:") then
.key |= sub("@metamask/"; "@metamask-previews/") |
.value |= sub("workspace:\\^"; "workspace:*")
else
.
end
)
else
.
end |

if has("peerDependencies") then
.peerDependencies |= with_entries(
if .value | startswith("workspace:") then
.key |= sub("@metamask/"; "@metamask-previews/") |
.value |= sub("workspace:\\^"; "workspace:*")
else
.
end
)
else
.
end |

if has("dependencies") then
.dependencies |= with_entries(
if .value | startswith("workspace:") then
.key |= sub("@metamask/"; "@metamask-previews/") |
.value |= sub("workspace:\\^"; "workspace:*")
else
.
end
)
else
.
end
.version |= split("-")[0] + "-preview-\($hash)"
Loading