fwiw, I was able to get yarn working with cordova@8 and a very basic yarn
wrapper (below) and a symlink `npm`. The wrapper is needed because `npm
install foo` needs to invoke `yarn add foo`.
```bash
#!/bin/bash
args="$@"
arg2="$2"
if [ "$1" = "install" ] && [ -n "$arg2" ] && [ "${arg2/--//}" = "$arg2" ] ; then
args="${args/install/add}"
fi
yarn $args
```
A better version of the wrapper is needed to get `--save-exact` working.
And [`pnpm`](https://github.com/pnpm/pnpm) with a symlink `npm` works without
any wrapper.
No doubt this wouldnt cover all possible usages, and shouldnt be supportable by
the core team, but it seems reasonable that cordova-fetch can use other package
managers used by the project (e.g. detected via
https://github.com/apache/cordova-fetch/issues/46 , or an explicit and
non-friendly option ), and include a warning that only npm is supported.
[ Full content available at: https://github.com/apache/cordova-cli/pull/292 ]
This message was relayed via gitbox.apache.org for [email protected]