We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does patch-package support turborepo / monorepo using npm?
patch-package
My repo has a similar structure to: https://github.com/vercel/turborepo/blob/main/examples/basic/README.md
Namely, each app / package (workspace) has a package.json but no package-lock.json, which gives me an error when trying to patch.
app
package
package.json
package-lock.json
cd apps/myApp
npm i patch-package --save-dev
vim node_modules/some-package/brokenFile.js
npx patch-package some-package
Creating temporary folder Error: Can't find yarn.lock file
It is throwing this error because it cannot find the package-lock.json in the workspace directory, so it assumes yarn.
patch-package/src/detectPackageManager.ts
Lines 44 to 45 in bd2e9a4
The package/file I want to patch is located in the node_modules of the app / package (workspace).
node_modules
apps/myApp/nod_modules/some-package
Is it possible to target that via npx patch-package some-package when running in the root directory?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Does
patch-package
support turborepo / monorepo using npm?My repo has a similar structure to: https://github.com/vercel/turborepo/blob/main/examples/basic/README.md
Namely, each
app
/package
(workspace) has apackage.json
but nopackage-lock.json
, which gives me an error when trying to patch.Steps to Repo
cd apps/myApp
patch-package
npm i patch-package --save-dev
vim node_modules/some-package/brokenFile.js
npx patch-package some-package
It is throwing this error because it cannot find the
package-lock.json
in the workspace directory, so it assumes yarn.patch-package/src/detectPackageManager.ts
Lines 44 to 45 in bd2e9a4
Patch Package in root
The package/file I want to patch is located in the
node_modules
of theapp
/package
(workspace).apps/myApp/nod_modules/some-package
Is it possible to target that via
npx patch-package some-package
when running in the root directory?The text was updated successfully, but these errors were encountered: