Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18620] CLI: Node path resolution should use fs.realpathSync()

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2020-01-30T10:29:10.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.2.1
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneePraveen Innamuri
Created2015-02-26T18:45:24.000+0000
Updated2020-01-31T11:33:26.000+0000

Description

In the Titanium CLI (https://github.com/appcelerator/titanium/blob/master/lib/titanium.js#L90-L103), it needs to resolve the real path to Node.js. As of today, it subprocesses the which command. This is overly complicated and unnecessary. A simply, better solution is to just call fs.realpathSync().

Comments

  1. Chris Barber 2020-01-30

    All signs point to this being resolved by TIMOB-15804.

JSON Source