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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user