-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Do not hard-code node_module
as cache directory
#2523
Comments
Hello, Why has this been closed? I'd also love to be able to configure the directory where the esbuild binary gets copied (as I'm using Yarn's Plug'n'Play feature and don't have any Thank you, |
I’m not sure exactly why it was closed since I didn’t close it. But one reason to keep things the way they are is because the official Yarn docs themselves say to use Another possible solution could be for esbuild to mark all of esbuild’s packages as |
I'm also not very fond of esbuild creating a Isn't esbuild unplugged implictly anyway because it contains a postinstall script as https://yarnpkg.com/advanced/lexicon#unplugged-package says it should be? I can see both esbuild and esbuild-windows-64 in my .yarn/unplugged folder so I think it is? |
In #2457, it was introduced to write to the hard-coded folder
node_modules/.cache/esbuild
in certain cases when usingyarn
. However modernyarn
workflows (https://yarnpkg.com/features/pnp) no longer usenode_modules
folder, e.g. in favor of.yarn/cache
. So there is nonode_modules
folder in those projects, and also no reason to create one with that name. It would be great to be able to choose a different folder for storing the cached binary in those cases, possibly inside.yarn
or something like.esbuild
.The text was updated successfully, but these errors were encountered: