Skip to content
New issue

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

Outputs with globs break @nx/angular:package #30041

Open
1 of 4 tasks
jhfrintrop opened this issue Feb 14, 2025 · 0 comments
Open
1 of 4 tasks

Outputs with globs break @nx/angular:package #30041

jhfrintrop opened this issue Feb 14, 2025 · 0 comments

Comments

@jhfrintrop
Copy link

Current Behavior

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

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.

Expected Behavior

Using supported glob patterns in outputs does not break @nx/angular:package.

GitHub Repo

No response

Steps to Reproduce

Nx Report

Nx 20.4.2

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant