Skip to content

Commit

Permalink
fix(NA): support legacy plugins path in plugins (elastic#57472)
Browse files Browse the repository at this point in the history
* fix(NA): support legacy plugins path in plugins

* chore(NA): add newly build dist
  • Loading branch information
mistic committed Feb 13, 2020
1 parent e96f0f4 commit 751d9af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/kbn-pm/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 751d9af

Please sign in to comment.