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
To patch typescript, edit the following folder:
...
Additional information
What I really like about bun is that it's a faster yarn v1. It let me have a dead simple node_modules, without messing with resolutions. I've used bun for a long time with patch-package and the flow was to first debug the node_modules, then when I'm done I run the patch command.
This flow feels like yarn v2+/pnpm where you first need to run the patch to some temporary package outside of your workspace and then commit back 🤮
I'm logging this as an issue given that DX is part of bun core values.
The text was updated successfully, but these errors were encountered:
We could add a bun patch --commit --force subcommand for those on macOS not using hardlinks to install. The problem with editing it directly on Linux or Windows is we use hardlinks to install packages by default. This means that editing the package there will also edit the cached on-disk version and that means it will effect every installed copy. We haven't come up with a way to preserve the fast install speeds while also allowing editing in-place
Can't the command detect the current backend and commit directly?
Unfortunately, not always. You could install from a USB stick. You could install from a network drive. The package could be a symlink to a network drive. You might be on a very old HFS+ volume. These are all edgecases, but we only know what was used at the time of install
It means that a install folder can contains a mix of multiple backend if install was done with one but a package was added with another later? There is no way to be sure a folder is not a hardlink/symlink on Mac?
What version of Bun is running?
1.0.17
What platform is your computer?
No response
What steps can reproduce the bug?
bun patch <package>
What is the expected behavior?
Diff the package and commit the patch
What do you see instead?
Additional information
What I really like about bun is that it's a faster yarn v1. It let me have a dead simple node_modules, without messing with resolutions. I've used bun for a long time with patch-package and the flow was to first debug the node_modules, then when I'm done I run the patch command.
This flow feels like yarn v2+/pnpm where you first need to run the patch to some temporary package outside of your workspace and then commit back 🤮
I'm logging this as an issue given that DX is part of bun core values.
The text was updated successfully, but these errors were encountered: