Keen Yee Liau c53e875df0 fix(@angular/cli): ng-add should resolve package.json
ng-add checks if a specified collection is installed, and if not it'd
proceed to install the package. However, `isPackageInstalled` would, by
default, resolve the main field or the index of the package. Not all NPM
packages specify the main field or provide an index file. It should
be sufficient to just check the presence of `package.json` to detect
whether a package is installed or not.

For example, `ng add @angular/bazel` should not install the package if
it's already installed locally. `@angular/bazel` does not specify a main
field not an index file in its `package.json`.
2019-01-29 14:13:44 -08:00
..
2018-10-16 11:18:16 -07:00
2018-11-13 13:10:20 -08:00
2018-11-13 13:09:50 -08:00
2018-11-13 13:10:20 -08:00
2018-10-10 14:50:06 -07:00
2018-11-13 13:09:50 -08:00
2018-11-13 13:09:50 -08:00
2018-11-16 15:15:29 -08:00
2018-11-13 13:10:20 -08:00