@nx/esbuild:esbuild asset copy ignores input files if they are ignored by the root .gitignore file · Issue #26602 · nrwl/nx · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if the value of the input property on an item in the assets option is in a location ignored by git it will not be copied. This makes no logical sense, because most of the things you would choose to copy in an assets copy step are the output of transforms that you would almost always choose to ignore in your repo.
Expected Behavior
The contents of .gitignore should not influence the behavior of asset copies at all.
GitHub Repo
No response
Steps to Reproduce
I did not create a repo, but the offending code can be clearly seen here:
heathprovost
changed the title
@nx/esbuild:esbuild asset copy ignores input files if they are in the root .gitignore
@nx/esbuild:esbuild asset copy ignores input files if they are ignored by the root .gitignore file
Jun 19, 2024
i also have this problem which is quite similar, i'm using npm config which also have order of files loading and when im overriding stuff with local.json5 file it doesn't work as somehow assets not copy .gitignore files without any reasonable excuse!
Edit: you can overwrite by setting ! in the .nxignore file. It reads .gitignore first, then can overwrite with .nxignore. Still think this should be kept open because it's frustrating to have to dig through source code to learn that
Current Behavior
Currently if the value of the
input
property on an item in theassets
option is in a location ignored by git it will not be copied. This makes no logical sense, because most of the things you would choose to copy in an assets copy step are the output of transforms that you would almost always choose to ignore in your repo.Expected Behavior
The contents of
.gitignore
should not influence the behavior of asset copies at all.GitHub Repo
No response
Steps to Reproduce
I did not create a repo, but the offending code can be clearly seen here:
https://github.com/nrwl/nx/blob/master/packages/js/src/utils/assets/copy-assets-handler.ts#L69
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: