Chore: Levitate to ignore private packages for compatibility comparison (#81798)

This commit is contained in:
Esteban Beltran 2024-02-02 15:25:32 +01:00 committed by GitHub
parent a30f8645d1
commit 89271df647
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,6 +21,11 @@ while IFS=" " read -r -a package; do
continue
fi
# Skip packages that are marked as private in their package.json (private: true)
if [[ $(jq -r '.private' "./packages/$PACKAGE_PATH/package.json") == "true" ]]; then
continue
fi
# Extract the npm package tarballs into separate directories e.g. ./base/@grafana-data.tgz -> ./base/grafana-data/
mkdir "$PREV"
tar -xf "./base/@$PACKAGE_PATH.tgz" --strip-components=1 -C "$PREV"