mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
SKA: Relocate script 6.1 (#205086)
## Summary * Exclude example modules from relocation. * Add an extra path transform to simplify packages folders.
This commit is contained in:
parent
1df66ad4c7
commit
19f24b31d9
2 changed files with 6 additions and 2 deletions
|
@ -110,11 +110,13 @@ const findModules = ({ teams, paths, included, excluded }: FindModulesParams, lo
|
|||
.filter(({ manifest }) => !manifest.devOnly)
|
||||
// explicit exclusions
|
||||
.filter(({ id }) => !EXCLUDED_MODULES.includes(id) && !excluded.includes(id))
|
||||
// we don't want to move test modules (just yet)
|
||||
// we don't want to move test and example modules (just yet)
|
||||
.filter(
|
||||
({ directory }) =>
|
||||
!directory.includes(`/${KIBANA_FOLDER}/test/`) &&
|
||||
!directory.includes(`/${KIBANA_FOLDER}/x-pack/test/`)
|
||||
!directory.includes(`/${KIBANA_FOLDER}/x-pack/test/`) &&
|
||||
!directory.includes(`/${KIBANA_FOLDER}/examples/`) &&
|
||||
!directory.includes(`/${KIBANA_FOLDER}/x-pack/examples/`)
|
||||
)
|
||||
// the module is under the umbrella specified by the user
|
||||
.filter(
|
||||
|
|
|
@ -14,6 +14,8 @@ const TRANSFORMS: Record<string, string | TransformFunction> = {
|
|||
'x-pack/solutions/security/packages/security-solution/': 'x-pack/solutions/security/packages/',
|
||||
'x-pack/solutions/observability/plugins/observability_solution/':
|
||||
'x-pack/solutions/observability/plugins/',
|
||||
'x-pack/solutions/observability/packages/observability/observability_utils/observability_':
|
||||
'x-pack/solutions/observability/packages/',
|
||||
'x-pack/solutions/observability/packages/observability/':
|
||||
'x-pack/solutions/observability/packages/',
|
||||
'src/core/packages/core/': (path: string) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue