fix(NA): support legacy plugins path in plugins (#57472) (#57530)

* fix(NA): support legacy plugins path in plugins

* chore(NA): add newly build dist
This commit is contained in:
Tiago Costa 2020-02-13 04:45:14 +00:00 committed by GitHub
parent e96f0f4b11
commit 13de160e00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -108561,7 +108561,9 @@ __webpack_require__.r(__webpack_exports__);
* to Kibana itself.
*/
const isKibanaDep = depVersion => depVersion.includes('../../packages/');
const isKibanaDep = depVersion => // For ../kibana-extra/ directory (legacy only)
depVersion.includes('../../kibana/packages/') || // For plugins/ directory
depVersion.includes('../../packages/');
/**
* This prepares the dependencies for an _external_ project.
*/

View file

@ -25,7 +25,11 @@ import { Project } from '../utils/project';
* to the Kibana root directory or `../kibana-extra/{plugin}` relative
* to Kibana itself.
*/
const isKibanaDep = (depVersion: string) => depVersion.includes('../../packages/');
const isKibanaDep = (depVersion: string) =>
// For ../kibana-extra/ directory (legacy only)
depVersion.includes('../../kibana/packages/') ||
// For plugins/ directory
depVersion.includes('../../packages/');
/**
* This prepares the dependencies for an _external_ project.