build(aio): temporarily use RxJS from root `node_modules/` when using local packages (#22573)
PR Close #22573
This commit is contained in:
parent
2b3de6390f
commit
e5fcf650f8
|
@ -165,6 +165,12 @@ class NgPackagesInstaller {
|
|||
.forEach(key => peerDependencies[key] = sourcePackagePeerDeps[key]);
|
||||
}
|
||||
});
|
||||
|
||||
// FIXME: Temporarily use RxJS from root `node_modules/`.
|
||||
if (peerDependencies.rxjs) {
|
||||
peerDependencies.rxjs = `file:${ANGULAR_ROOT_DIR}/node_modules/rxjs`;
|
||||
}
|
||||
|
||||
return [mergedDependencies, peerDependencies];
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ describe('NgPackagesInstaller', () => {
|
|||
'@angular/core': {
|
||||
parentDir: packagesDir,
|
||||
packageJsonPath: `${packagesDir}/core/package.json`,
|
||||
config: { peerDependencies: { rxjs: '5.0.1' } }
|
||||
config: { peerDependencies: { 'some-package': '5.0.1' } }
|
||||
},
|
||||
'@angular/common': {
|
||||
parentDir: packagesDir,
|
||||
|
@ -112,7 +112,7 @@ describe('NgPackagesInstaller', () => {
|
|||
},
|
||||
devDependencies: {
|
||||
'@angular/compiler-cli': `file:${toolsDir}/compiler-cli`,
|
||||
rxjs: '5.0.1',
|
||||
'some-package': '5.0.1',
|
||||
typescript: '^2.4.2'
|
||||
},
|
||||
__angular: { local: true }
|
||||
|
|
Loading…
Reference in New Issue