Description
As mentioned in oven-sh/bun#2336 (comment),
Attempting to create a patch using bunx patch-package fails. The patch-package outputs the following error:
**ERROR** No package-lock.json, npm-shrinkwrap.json, or yarn.lock file. You must use either npm@>=5, yarn, or npm-shrinkwrap to manage this project's dependencies.
However, if you have pre-existing patches in the ./patches directory, you can successfully apply them using the
bunx patch-package command (or via package.json -> scripts -> "postinstall": "patch-package")As a temporary workaround to generate a patches/package+name+version.patch file
Run npm install to generate a package-lock.json file (temporarily, we'll remove it later)
Make the necessary modifications inside node-modules/
Execute npx patch-package to create the patches/package+name+version.patch file
Run rm package-lock.json && bun install
Bun has just released their 1.0 version, and its popularity seems to be growing rapidly. Will there ever be support for Bun?