Skip to content

Commit

Permalink
feat(builtin): turn off a strict requirement for peer dependencies (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bweston92 authored and alexeagle committed Oct 16, 2019
1 parent f915703 commit bd2f108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/npm_install/generate_build_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def _maybe(repo_rule, name, **kwargs):
});
}
findDeps(dep.dependencies, true, 'dependency');
findDeps(dep.peerDependencies, true, 'peer dependency');
findDeps(dep.peerDependencies, false, 'peer dependency');
// `optionalDependencies` that are missing should be silently
// ignored since the npm/yarn will not fail if these dependencies
// fail to install. Packages should handle the cases where these
Expand Down
2 changes: 1 addition & 1 deletion internal/npm_install/generate_build_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ function flattenPkgDependencies(pkg: Dep, dep: Dep, pkgsMap: Map<string, Dep>) {
}

findDeps(dep.dependencies, true, 'dependency');
findDeps(dep.peerDependencies, true, 'peer dependency');
findDeps(dep.peerDependencies, false, 'peer dependency');
// `optionalDependencies` that are missing should be silently
// ignored since the npm/yarn will not fail if these dependencies
// fail to install. Packages should handle the cases where these
Expand Down

0 comments on commit bd2f108

Please sign in to comment.