-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(bundling): replace rollup-plugin-copy with nx copy assets plugin #33601
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
Conversation
After upgrading to Nx 21.4.0, TypeScript type-checking fails with "Cannot find type definition file for 'minimatch'" error. This is caused by the transitive dependency chain: [email protected] -> [email protected] -> @types/[email protected] -> @types/minimatch When users run tsc without explicit types configuration, TypeScript auto-discovers @types/minimatch from node_modules but can't properly resolve it. No type errors related to minimatch when running type-check. Fixes #32398
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
View your CI Pipeline Execution ↗ for commit c061645
☁️ Nx Cloud last updated this comment at |
Co-authored-by: jaysoo <[email protected]>
Co-authored-by: jaysoo <[email protected]>
…plugin
Fixes asset path handling in nxCopyAssetsPlugin to prevent double-nested
output directories. When using assets like { input: '.', glob: 'libs/childlib/README.md' },
files now correctly copy to dist/libs/childlib/README.md instead of
dist/libs/childlib/libs/childlib/README.md.
The fix extracts literal directory prefixes from glob patterns and incorporates
them into the input path, ensuring CopyAssetsHandler receives properly normalized
relative paths.
…plugin
Fixes asset path handling in nxCopyAssetsPlugin to prevent double-nested
output directories. When using assets like { input: '.', glob: 'libs/childlib/README.md' },
files now correctly copy to dist/libs/childlib/README.md instead of
dist/libs/childlib/libs/childlib/README.md.
The fix extracts literal directory prefixes from glob patterns and incorporates
them into the input path, ensuring CopyAssetsHandler receives properly normalized
relative paths. [Self-Healing CI Rerun]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nx Cloud has identified a flaky task in your failed CI:
🔂 Since the failure was identified as flaky, we reran your CI automatically.
🎓 Learn more about Self-Healing CI on nx.dev
…33601) There's a problem when `@nx/rollup` is installed with [email protected], and typechecks. This is caused by the transitive dependency chain: ``` [email protected] -> [email protected] -> @types/[email protected] -> @types/minimatch ``` When users run tsc without explicit `types` configuration, TypeScript auto-discovers `@types/minimatch` from `node_modules` but can't properly resolve it. Note: This doesn't happen with NPM and PNPM, nor newer yarn versions. Verified fix with this repro: https://github.com/jaysoo/rollup-251124 Fixes #32398 --------- Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com> Co-authored-by: jaysoo <[email protected]>
…33601) There's a problem when `@nx/rollup` is installed with [email protected], and typechecks. This is caused by the transitive dependency chain: ``` [email protected] -> [email protected] -> @types/[email protected] -> @types/minimatch ``` When users run tsc without explicit `types` configuration, TypeScript auto-discovers `@types/minimatch` from `node_modules` but can't properly resolve it. Note: This doesn't happen with NPM and PNPM, nor newer yarn versions. Verified fix with this repro: https://github.com/jaysoo/rollup-251124 Fixes #32398 --------- Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com> Co-authored-by: jaysoo <[email protected]> (cherry picked from commit 017ad93)
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
There's a problem when
@nx/rollupis installed with [email protected], and typechecks.This is caused by the transitive dependency chain:
When users run tsc without explicit
typesconfiguration, TypeScript auto-discovers@types/minimatchfromnode_modulesbut can't properly resolve it.Note: This doesn't happen with NPM and PNPM, nor newer yarn versions.
Verified fix with this repro: https://github.com/jaysoo/rollup-251124
Fixes #32398