diff --git a/aio/tools/ng-packages-installer/index.js b/aio/tools/ng-packages-installer/index.js index f1dc7feffd..d8b6fd0670 100644 --- a/aio/tools/ng-packages-installer/index.js +++ b/aio/tools/ng-packages-installer/index.js @@ -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]; } diff --git a/aio/tools/ng-packages-installer/index.spec.js b/aio/tools/ng-packages-installer/index.spec.js index 561c09e7c1..f205947380 100644 --- a/aio/tools/ng-packages-installer/index.spec.js +++ b/aio/tools/ng-packages-installer/index.spec.js @@ -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 }