Skip to content

Commit

Permalink
feat(builtin): detect APF node module format if ANGULAR_PACKAGE file …
Browse files Browse the repository at this point in the history
…found

This file is used by the npm/yarn_install rule to detect APF. See bazel-contrib#927
  • Loading branch information
gregmagolan committed Sep 9, 2019
1 parent efae65c commit 28c9582
Show file tree
Hide file tree
Showing 5 changed files with 625 additions and 662 deletions.
5 changes: 5 additions & 0 deletions internal/npm_install/generate_build_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,11 @@ function filterFiles(files, exts = []) {
*/
function isNgApfPackage(pkg) {
const set = new Set(pkg._files);
if (set.has('ANGULAR_PACKAGE')) {
// This file is used by the npm/yarn_install rule to detect APF. See
// https://github.com/bazelbuild/rules_nodejs/issues/927
return true;
}
const metadataExt = /\.metadata\.json$/;
return pkg._files.some((file) => {
if (metadataExt.test(file)) {
Expand Down
Loading

0 comments on commit 28c9582

Please sign in to comment.