Skip to content

Commit 09ff937

Browse files
shaileshchekemisticelasticmachine
committed
Fix paths for kibana packages used by plugins (#57097)
* Fix paths for kibana packages in prepare_project_dependencies(#40858). * Dist/index.js after yarn build. * chore(NA): correctly include kbm pm new dist file * Commit after cherry-pick 985c85c from recreation branch. Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 5cb2311 commit 09ff937

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/kbn-pm/dist/index.js

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

108548-
const isKibanaDep = depVersion => depVersion.includes('../../kibana/');
108548+
const isKibanaDep = depVersion => depVersion.includes('../../packages/');
108549108549
/**
108550108550
* This prepares the dependencies for an _external_ project.
108551108551
*/

packages/kbn-pm/src/production/__fixtures__/external_packages/with_kibana_link_deps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "quux",
33
"version": "1.0.0",
44
"dependencies": {
5-
"@kbn/foo": "link:../../kibana/packages/foo"
5+
"@kbn/foo": "link:../../packages/foo"
66
}
77
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ 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('../../kibana/');
28+
const isKibanaDep = (depVersion: string) => depVersion.includes('../../packages/');
2929

3030
/**
3131
* This prepares the dependencies for an _external_ project.

0 commit comments

Comments
 (0)