Update our node.js bin paths to reference the .bin directory.
Review Request #11832 — Created Oct. 2, 2021 and submitted
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.
Summary | ID |
---|---|
9cb22c7a8df893eb0ca68098a8de4d592fe80f61 |
- Change Summary:
-
Rebased on top of the new babel changes.
- Commits:
-
Summary ID b195110f77e56f878305acfe47638c37d8002a6a 9cb22c7a8df893eb0ca68098a8de4d592fe80f61 - Diff:
-
Revision 2 (+8 -10)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.