From 8543c7cf8d7a1dbf75c4fdc5395439de3d73cdf5 Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Mon, 6 Feb 2017 11:53:01 -0800 Subject: [PATCH] fix(@angular/cli): add a dependency to RXJS Projects dont have a problem with it because they have that dependency directly, but global installs dont have rxjs and will error out. --- packages/@angular/cli/lib/cli/index.js | 3 ++- packages/@angular/cli/package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@angular/cli/lib/cli/index.js b/packages/@angular/cli/lib/cli/index.js index a2e824a91bf0..87e17842b98e 100644 --- a/packages/@angular/cli/lib/cli/index.js +++ b/packages/@angular/cli/lib/cli/index.js @@ -1,8 +1,9 @@ /*eslint-disable no-console */ -// Prevent the dependency validation from tripping because we don't import zone.js. We need +// Prevent the dependency validation from tripping because we don't import these. We need // it as a peer dependency of @angular/core. // require('zone.js') +// require('rxjs') // This file hooks up on require calls to transpile TypeScript. diff --git a/packages/@angular/cli/package.json b/packages/@angular/cli/package.json index 5799e0fa8055..222d455f4ea1 100644 --- a/packages/@angular/cli/package.json +++ b/packages/@angular/cli/package.json @@ -74,6 +74,7 @@ "resolve": "^1.1.7", "rimraf": "^2.5.3", "rsvp": "^3.0.17", + "rxjs": "^5.0.1", "sass-loader": "^4.1.1", "script-loader": "^0.7.0", "semver": "^5.1.0",