We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using @nx/angular:package to build a project and at least one of its depdencies has globs in its outputs (e.g. {projectRoot}/dist/**/*.js, see https://nx.dev/recipes/running-tasks/configure-outputs#output-files) @nx/angular:package fails with
@nx/angular:package
outputs
{projectRoot}/dist/**/*.js
error TS5062: Substitution 'libs/my-dependency/dist/**/*.js' in pattern 'my-dependency' can have at most one '*' character.
This is because initializeNgPackagr adds the outputs of the dependencies to the tsconfig: https://github.com/nrwl/nx/blob/20.4.2/packages/angular/src/executors/package/package.impl.ts#L27-L31.
initializeNgPackagr
Using supported glob patterns in outputs does not break @nx/angular:package.
No response
Nx 20.4.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Behavior
When using
@nx/angular:package
to build a project and at least one of its depdencies has globs in itsoutputs
(e.g.{projectRoot}/dist/**/*.js
, see https://nx.dev/recipes/running-tasks/configure-outputs#output-files)@nx/angular:package
fails withThis is because
initializeNgPackagr
adds theoutputs
of the dependencies to the tsconfig: https://github.com/nrwl/nx/blob/20.4.2/packages/angular/src/executors/package/package.impl.ts#L27-L31.Expected Behavior
Using supported glob patterns in
outputs
does not break@nx/angular:package
.GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: