Skip to content

Commit b839d08

Browse files
josephperrottkirjs
authored andcommitted
build: correct the query for discovering all releasable packages (#61879)
Update the bazel query for finding all releasable packages to look for all targets with the name `npm_package` that contain the expected tag. PR Close #61879
1 parent 9a03000 commit b839d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build/package-builder.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const releaseTargetTag = 'release-with-framework';
2626

2727
/** Command that queries Bazel for all release package targets. */
2828
const queryPackagesCmd =
29-
`${bazelCmd} query --output=label "attr('tags', '\\[.*${releaseTargetTag}.*\\]', //packages/...) ` +
30-
`intersect kind('ng_package|pkg_npm', //packages/...)"`;
29+
`${bazelCmd} query --output=label "filter(':npm_package$', ` +
30+
`attr('tags', '\\[.*${releaseTargetTag}.*\\]', //packages/...))"`;
3131

3232
/** Path for the default distribution output directory. */
3333
const defaultDistPath = join(projectDir, 'dist/packages-dist');

0 commit comments

Comments
 (0)