[TIMOB-18620] CLI: Node path resolution should use fs.realpathSync()
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-01-30T10:29:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.2.1 |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Praveen Innamuri |
Created | 2015-02-26T18:45:24.000+0000 |
Updated | 2020-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()
.
All signs point to this being resolved by TIMOB-15804.