Skip to content

Commit 162e436

Browse files
gregmagolanalexeagle
authored andcommitted
feat(builtin): detect APF node module format if ANGULAR_PACKAGE file found (#1112)
This file is used by the npm/yarn_install rule to detect APF. See #927
1 parent 7615657 commit 162e436

File tree

5 files changed

+625
-662
lines changed

5 files changed

+625
-662
lines changed

internal/npm_install/generate_build_file.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,11 @@ function filterFiles(files, exts = []) {
812812
*/
813813
function isNgApfPackage(pkg) {
814814
const set = new Set(pkg._files);
815+
if (set.has('ANGULAR_PACKAGE')) {
816+
// This file is used by the npm/yarn_install rule to detect APF. See
817+
// https://github.com/bazelbuild/rules_nodejs/issues/927
818+
return true;
819+
}
815820
const metadataExt = /\.metadata\.json$/;
816821
return pkg._files.some((file) => {
817822
if (metadataExt.test(file)) {

0 commit comments

Comments
 (0)