mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[7.x] add src/plugins to the list of plugin dirs to watch (#45… (#45273)
* add src/plugins to the list of plugin dirs to watch * include x-pack/plugins too
This commit is contained in:
parent
65631a26b9
commit
eb1046ff8d
1 changed files with 10 additions and 2 deletions
|
@ -24,6 +24,7 @@ import opn from 'opn';
|
|||
import { debounce, invoke, bindAll, once, uniq } from 'lodash';
|
||||
import * as Rx from 'rxjs';
|
||||
import { first, mapTo, filter, map, take } from 'rxjs/operators';
|
||||
import { REPO_ROOT } from '@kbn/dev-utils';
|
||||
|
||||
import Log from '../log';
|
||||
import Worker from './worker';
|
||||
|
@ -102,8 +103,15 @@ export default class ClusterManager {
|
|||
|
||||
if (opts.watch) {
|
||||
const pluginPaths = config.get('plugins.paths');
|
||||
const scanDirs = config.get('plugins.scanDirs');
|
||||
const extraPaths = [...pluginPaths, ...scanDirs];
|
||||
const scanDirs = [
|
||||
...config.get('plugins.scanDirs'),
|
||||
resolve(REPO_ROOT, 'src/plugins'),
|
||||
resolve(REPO_ROOT, 'x-pack/plugins'),
|
||||
];
|
||||
const extraPaths = [
|
||||
...pluginPaths,
|
||||
...scanDirs,
|
||||
];
|
||||
|
||||
const extraIgnores = scanDirs
|
||||
.map(scanDir => resolve(scanDir, '*'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue