[@kbn/plugin-generator] Skip .i18nrc.json for internal plugins (#150556)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Alejandro Fernández Haro 2023-02-09 14:03:12 +01:00 committed by GitHub
parent d1ef916c4f
commit 90590d0ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -83,7 +83,6 @@ it('generates a plugin without UI', async () => {
Array [
<absolute path>/plugins/bar/.eslintrc.js,
<absolute path>/plugins/bar/.gitignore,
<absolute path>/plugins/bar/.i18nrc.json,
<absolute path>/plugins/bar/common/index.ts,
<absolute path>/plugins/bar/kibana.json,
<absolute path>/plugins/bar/package.json,

View file

@ -86,7 +86,7 @@ export async function renderTemplates({
excludeFiles(
([] as string[]).concat(
answers.ui ? [] : 'public/**/*',
answers.ui && !answers.internal ? [] : ['translations/**/*', 'i18nrc.json'],
answers.ui && !answers.internal ? [] : ['translations/**/*', '.i18nrc.json'],
answers.server ? [] : 'server/**/*',
!answers.internal ? [] : ['.eslintrc.js', 'tsconfig.json', 'package.json', '.gitignore']
)