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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue