Skip to content

Commit 5d37ec6

Browse files
authored
fix(NA): support legacy plugins path in plugins (#57472) (#57531)
* fix(NA): support legacy plugins path in plugins * chore(NA): add newly build dist
1 parent 8b8e258 commit 5d37ec6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/kbn-pm/dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108545,7 +108545,9 @@ __webpack_require__.r(__webpack_exports__);
108545108545
* to Kibana itself.
108546108546
*/
108547108547

108548-
const isKibanaDep = depVersion => depVersion.includes('../../packages/');
108548+
const isKibanaDep = depVersion => // For ../kibana-extra/ directory (legacy only)
108549+
depVersion.includes('../../kibana/packages/') || // For plugins/ directory
108550+
depVersion.includes('../../packages/');
108549108551
/**
108550108552
* This prepares the dependencies for an _external_ project.
108551108553
*/

packages/kbn-pm/src/production/prepare_project_dependencies.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ import { Project } from '../utils/project';
2525
* to the Kibana root directory or `../kibana-extra/{plugin}` relative
2626
* to Kibana itself.
2727
*/
28-
const isKibanaDep = (depVersion: string) => depVersion.includes('../../packages/');
28+
const isKibanaDep = (depVersion: string) =>
29+
// For ../kibana-extra/ directory (legacy only)
30+
depVersion.includes('../../kibana/packages/') ||
31+
// For plugins/ directory
32+
depVersion.includes('../../packages/');
2933

3034
/**
3135
* This prepares the dependencies for an _external_ project.

0 commit comments

Comments
 (0)