From d414142c1cc6a3d0782c5dc45a0a6c26def8632c Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Tue, 21 May 2024 11:30:11 -0700 Subject: [PATCH] build: remove Endo-specific build hooks --- scripts/get-packed-versions.sh | 2 -- scripts/registry.sh | 6 ------ scripts/replace-packages.sh | 3 +-- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/get-packed-versions.sh b/scripts/get-packed-versions.sh index ecaf970ee8d..d9459a7d987 100755 --- a/scripts/get-packed-versions.sh +++ b/scripts/get-packed-versions.sh @@ -23,8 +23,6 @@ corepack enable yarn install 1>&2 yarn build 1>&2 -yarn lerna run build:types 1>&2 - npm query .workspace | jq -r '.[].location' | while read -r dir; do # Skip private packages. echo "dir=$dir" 1>&2 diff --git a/scripts/registry.sh b/scripts/registry.sh index 4824ac1c3b4..fd9496693b5 100755 --- a/scripts/registry.sh +++ b/scripts/registry.sh @@ -70,18 +70,12 @@ publish() { yarn build git commit --allow-empty -am "chore: prepare for publishing" - # Convention used in Endo - yarn lerna run build:types - # Publish the packages to our local service. # without concurrency until https://github.com/Agoric/agoric-sdk/issues/8091 yarn lerna publish --concurrency 1 prerelease --exact \ --dist-tag="$DISTTAG" --preid=dev \ --no-push --no-git-reset --no-git-tag-version --no-verify-access --yes - # Convention used in Endo - yarn lerna run clean:types - # Change any version prefices to an exact match, and merge our versions. VERSIONSHASH=$(jq --slurpfile versions <(popd > /dev/null && git cat-file blob "$VERSIONSHASH") \ '[to_entries[] | { key: .key, value: (.value | sub("^[~^]"; "")) }] diff --git a/scripts/replace-packages.sh b/scripts/replace-packages.sh index 7d6817a649f..125f7461a4c 100755 --- a/scripts/replace-packages.sh +++ b/scripts/replace-packages.sh @@ -14,8 +14,7 @@ DSTDIR=${2-$PWD/node_modules} pushd "$SRCDIR" yarn install npm run build -# Endo requires this -npx lerna run build:types || true + npm query .workspace | jq -r '.[].location' | while read -r dir; do # Skip private packages. test "$(jq .private < "$dir/package.json")" != true || continue