kibana/packages/kbn-plugin-check
Gerard Soldevila 935d2e1444
[8.x] SKA: Categorise remaining packages (#205875) (#205973)
# Backport

This will backport the following commits from `main` to `8.x`:
- [SKA: Categorise remaining packages
(#205875)](https://github.com/elastic/kibana/pull/205875)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-01-08T21:20:14Z","message":"SKA:
Categorise remaining packages (#205875)\n\n## Summary\r\n\r\n* Delete
unused package `@kbn/formatters`\r\n* Delete unused package
`@kbn/response-ops-feature-flag-service`\r\n* Flag
`@kbn/generate-console-definitions` as `devOnly: true`\r\n* Flag
`@kbn/plugin-check` as `devOnly: true`\r\n* Flag `@kbn/set-map` as
`devOnly: true`\r\n* Flag `@kbn/synthetics-private-location` as
`devOnly: true`\r\n* Categorise `@kbn/calculate-auto` as
`platform/shared`\r\n* Categorise `@kbn/charts-theme` as
`platform/shared`\r\n* Categorise `@kbn/saved-search-component` as
`platform/shared`\r\n* Categorise `@kbn/use-tracked-promise` as
`platform/shared`\r\n* Categorise `@kbn/charts-theme` as
`platform/shared`\r\n* Categorise `@kbn/response-ops-rule-form` as
`platform/shared`","sha":"2be928c489601fac46ce1e5136ed9ecc63fd4e22","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","Team:obs-ux-management"],"number":205875,"url":"https://github.com/elastic/kibana/pull/205875","mergeCommit":{"message":"SKA:
Categorise remaining packages (#205875)\n\n## Summary\r\n\r\n* Delete
unused package `@kbn/formatters`\r\n* Delete unused package
`@kbn/response-ops-feature-flag-service`\r\n* Flag
`@kbn/generate-console-definitions` as `devOnly: true`\r\n* Flag
`@kbn/plugin-check` as `devOnly: true`\r\n* Flag `@kbn/set-map` as
`devOnly: true`\r\n* Flag `@kbn/synthetics-private-location` as
`devOnly: true`\r\n* Categorise `@kbn/calculate-auto` as
`platform/shared`\r\n* Categorise `@kbn/charts-theme` as
`platform/shared`\r\n* Categorise `@kbn/saved-search-component` as
`platform/shared`\r\n* Categorise `@kbn/use-tracked-promise` as
`platform/shared`\r\n* Categorise `@kbn/charts-theme` as
`platform/shared`\r\n* Categorise `@kbn/response-ops-rule-form` as
`platform/shared`","sha":"2be928c489601fac46ce1e5136ed9ecc63fd4e22"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205875","number":205875,"mergeCommit":{"message":"SKA:
Categorise remaining packages (#205875)\n\n## Summary\r\n\r\n* Delete
unused package `@kbn/formatters`\r\n* Delete unused package
`@kbn/response-ops-feature-flag-service`\r\n* Flag
`@kbn/generate-console-definitions` as `devOnly: true`\r\n* Flag
`@kbn/plugin-check` as `devOnly: true`\r\n* Flag `@kbn/set-map` as
`devOnly: true`\r\n* Flag `@kbn/synthetics-private-location` as
`devOnly: true`\r\n* Categorise `@kbn/calculate-auto` as
`platform/shared`\r\n* Categorise `@kbn/charts-theme` as
`platform/shared`\r\n* Categorise `@kbn/saved-search-component` as
`platform/shared`\r\n* Categorise `@kbn/use-tracked-promise` as
`platform/shared`\r\n* Categorise `@kbn/charts-theme` as
`platform/shared`\r\n* Categorise `@kbn/response-ops-rule-form` as
`platform/shared`","sha":"2be928c489601fac46ce1e5136ed9ecc63fd4e22"}}]}]
BACKPORT-->
2025-01-08 23:32:22 +00:00
..
dependencies Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
lib Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
.eslintrc.json [dx] Dependency check script for plugins (#171483) 2024-01-17 17:19:41 -05:00
const.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
dependents.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
index.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc [8.x] SKA: Categorise remaining packages (#205875) (#205973) 2025-01-08 23:32:22 +00:00
package.json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
rank.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.md [dx] Dependency check script for plugins (#171483) 2024-01-17 17:19:41 -05:00
tsconfig.json [dx] Dependency check script for plugins (#171483) 2024-01-17 17:19:41 -05:00
types.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00

@kbn/plugin-check

This package contains a CLI to detect inconsistencies between the manifest and Typescript types of a Kibana plugin. Future work will include automatically fixing these inconsistencies.

Usage

To check a single plugin, run the following command from the root of the Kibana repo:

node scripts/plugin_check --plugin pluginName

To check all plugins owned by a team, run the following:

node scripts/plugin_check --team @elastic/team_name