From 99f32bc6e7a5c961e09574eb1a7331cac3501976 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Tue, 25 Jun 2024 17:32:43 -0230 Subject: [PATCH] chore: Remove unnecessary steps from prepare preview builds script These steps handled updating `workspace:` references, but we don't use those anymore (since #1623). --- scripts/prepare-preview-builds.jq | 45 +------------------------------ 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/scripts/prepare-preview-builds.jq b/scripts/prepare-preview-builds.jq index dbc0f53c535..a523e49fb8d 100644 --- a/scripts/prepare-preview-builds.jq +++ b/scripts/prepare-preview-builds.jq @@ -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)"