Ignore untyped-resolutions for grafana-i18n in validate-npm-packages

(cherry picked from commit b250fe8d22)
This commit is contained in:
joshhunt 2025-10-03 16:43:03 +01:00
parent 27381bf5c8
commit ef847d6941
No known key found for this signature in database
1 changed files with 7 additions and 2 deletions

View File

@ -9,8 +9,13 @@ ARTIFACTS_DIR="./npm-artifacts"
for file in "$ARTIFACTS_DIR"/*.tgz; do for file in "$ARTIFACTS_DIR"/*.tgz; do
echo "🔍 Checking NPM package: $file" echo "🔍 Checking NPM package: $file"
# Ignore named-exports for now as builds aren't compatible yet. if [[ "$file" == *"@grafana-i18n"* ]]; then
yarn attw "$file" --ignore-rules "named-exports" "false-cjs" IGNORE_RULES="named-exports false-cjs untyped-resolution"
else
IGNORE_RULES="named-exports false-cjs"
fi
# shellcheck disable=SC2086
yarn attw "$file" --ignore-rules $IGNORE_RULES --profile node16
yarn publint "$file" yarn publint "$file"
done done