Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-332] appcd-default-plugins: Yarn and Lerna not found from Appc CLI on Windows

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2020-03-03T21:42:13.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 4.0.0
ComponentsAppc CLI, appcd-default-plugins
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2020-03-03T17:47:37.000+0000
Updated2020-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.

Comments

  1. Chris Barber 2020-03-03

    appc-daemon PR: https://github.com/appcelerator/appc-daemon/pull/460

JSON Source