[DAEMON-332] appcd-default-plugins: Yarn and Lerna not found from Appc CLI on Windows
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2020-03-03T21:42:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Appc Daemon 4.0.0 |
Components | Appc CLI, appcd-default-plugins |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2020-03-03T17:47:37.000+0000 |
Updated | 2020-03-31T20:10:30.000+0000 |
Description
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.
Adding 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.
appc-daemon PR: https://github.com/appcelerator/appc-daemon/pull/460