Skip to content

Commit

Permalink
[7.x] add src/plugins to the list of plugin dirs to watch (#45… (#45273)
Browse files Browse the repository at this point in the history
* add src/plugins to the list of plugin dirs to watch

* include x-pack/plugins too
  • Loading branch information
Spencer committed Sep 10, 2019
1 parent 65631a2 commit eb1046f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/cli/cluster/cluster_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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, '*'))
Expand Down

0 comments on commit eb1046f

Please sign in to comment.