[DAEMON-332] appcd-default-plugins: Yarn and Lerna not found from Appc CLI on Windows
|Appc Daemon 4.0.0
|Appc CLI, appcd-default-plugins
appcd-default-plugins locates lerna and yarn by their
.cmd bin script. However, since the Appc CLI package is built on a Linux machine, npm doesn't create the
.cmd files and thus is not able to find them.
While appcd-default-plugins would have no problem resolving the lerna and yarn bin scripts directly,
lerna bootstrap calls
yarn and expects the shell (e.g. cmd.exe) to locate the
.cmd file and run it. So, we need the
.cmd files to the Appc CLI package when it's being built is probably too much work, instead we can to generate them using the same
bin-links package npm uses.
- Chris Barber 2020-03-03
appc-daemon PR: https://github.com/appcelerator/appc-daemon/pull/460