Update our node.js bin paths to reference the .bin directory.
Review Request #11832 — Created Oct. 2, 2021 and submitted — Latest diff uploaded
We've been hard-coding paths to node.js-based executable files, pointing
to some place innode_modules/<module>/...
. We've seen this change a
couple of times now, particularly with Babel.There's already a built-in solution to this that makes our lives easier,
reduces maintenance, and better survives module updates. Each executable
has a symlink innode_modules/.bin/
, which references the correct path
within the module.This change updates our static media building to reference these more
stable paths.
Successfully built packages, and verified through
ps auxw
that the
.bin/
paths were being used.