build: correct the query for discovering all releasable packages (#61879) (#61862)

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

PR Close #61862
This commit is contained in:
Joey Perrott
2025-06-04 20:29:49 +00:00
committed by Paul Gschwendtner
parent 24693ce1ff
commit e98ef808aa
+2 -2
View File
@@ -26,8 +26,8 @@ const releaseTargetTag = 'release-with-framework';
/** Command that queries Bazel for all release package targets. */
const queryPackagesCmd =
`${bazelCmd} query --output=label "attr('tags', '\\[.*${releaseTargetTag}.*\\]', //packages/...) ` +
`intersect kind('ng_package|pkg_npm', //packages/...)"`;
`${bazelCmd} query --output=label "filter(':npm_package$', ` +
`attr('tags', '\\[.*${releaseTargetTag}.*\\]', //packages/...))"`;
/** Path for the default distribution output directory. */
const defaultDistPath = join(projectDir, 'dist/packages-dist');