Fix paths for kibana packages used by plugins (#57097) (#57410)

* 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>

Co-authored-by: Shailesh cheke <shailesh.cheke@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Tiago Costa 2020-02-12 14:42:39 +00:00 committed by GitHub
parent 1de83bd387
commit e1fdb21863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -108545,7 +108545,7 @@ __webpack_require__.r(__webpack_exports__);
* to Kibana itself.
*/
const isKibanaDep = depVersion => depVersion.includes('../../kibana/');
const isKibanaDep = depVersion => depVersion.includes('../../packages/');
/**
* This prepares the dependencies for an _external_ project.
*/

View file

@ -2,6 +2,6 @@
"name": "quux",
"version": "1.0.0",
"dependencies": {
"@kbn/foo": "link:../../kibana/packages/foo"
"@kbn/foo": "link:../../packages/foo"
}
}

View file

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