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
npm 7 installs packages from app1 that exist only in app1, for example, within the root node_modules and not in app1/node_modules, thus while running npx patch-package my-package I get the error "my-package does not exist / not found".
So in order to support that we need to check if the package does exist in app1/package.json to keep looking for the package but in the node_modules folder that is higher in the hierarchy and has package.json as well.
The text was updated successfully, but these errors were encountered:
jony89
changed the title
support monorepo structure (npm 7
support monorepo structure (npm 7)
Feb 10, 2021
jony89
changed the title
support monorepo structure (npm 7)
support monorepo structure (npm 7 / lerna etc..)
Feb 10, 2021
patch-package
currently does not support npm7 workspaces or any monorepo structure.This is a monorepo structure for example:
npm 7 installs packages from app1 that exist only in app1, for example, within the root
node_modules
and not inapp1/node_modules
, thus while runningnpx patch-package my-package
I get the error "my-package does not exist / not found".So in order to support that we need to check if the package does exist in
app1/package.json
to keep looking for the package but in thenode_modules
folder that is higher in the hierarchy and haspackage.json
as well.The text was updated successfully, but these errors were encountered: