mirror of https://github.com/grafana/grafana.git
Ignore untyped-resolutions for grafana-i18n in validate-npm-packages
(cherry picked from commit b250fe8d22
)
This commit is contained in:
parent
27381bf5c8
commit
ef847d6941
|
@ -9,8 +9,13 @@ ARTIFACTS_DIR="./npm-artifacts"
|
|||
for file in "$ARTIFACTS_DIR"/*.tgz; do
|
||||
echo "🔍 Checking NPM package: $file"
|
||||
|
||||
# Ignore named-exports for now as builds aren't compatible yet.
|
||||
yarn attw "$file" --ignore-rules "named-exports" "false-cjs"
|
||||
if [[ "$file" == *"@grafana-i18n"* ]]; then
|
||||
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"
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue