Internationalisation: Properly expose i18n lint rule (#106436)

* properlty expose lint rule

* don't need types

* use rollup plugin copy

* fix dist path
This commit is contained in:
Ashley Harrison
2025-06-10 14:45:34 +01:00
committed by GitHub
parent 1a216a8fff
commit 0bdcb4d080
4 changed files with 124 additions and 2 deletions
+8
View File
@@ -33,6 +33,14 @@ try {
};
}
// Fix for @grafana/i18n so eslint-plugin can be imported by consumers
if (pkgJson.content.name === '@grafana/i18n') {
exports['./eslint-plugin'] = {
import: './dist/eslint/index.cjs',
require: './dist/eslint/index.cjs',
};
}
pkgJson.update({
main: cjsIndex,
types: cjsTypes,