Currently, cordova-fetch only checks the project's node_module directory,
without checking parent directories. For example, in:
```
myproject/
node_modules/
dependency/
packages/
dependency/
subproject/
index.js
config.xml
package.json
package.json
```
If we `require('dependency')` from index.js, node will search through all
ancestor directories for node_modules/dependency.
However, `cordova-fetch` doesn't support this. Instead, it will install
`dependency` again inside myproject/packages/subproject/node_modules
This is a problem for use cases like yarn workspaces, where the *standard* node
module resolution algorithm is used to help "dependency" be developed alongside
"subproject".
Solving this problem could be a good way to support yarn workspaces without
needing to [add explicit support for
yarn](https://github.com/apache/cordova-cli/pull/292#issuecomment-401331607).
[ Full content available at: https://github.com/apache/cordova-fetch/issues/43 ]
This message was relayed via gitbox.apache.org for [email protected]