v9.8.0 removed links to the other @npmcli module workspaces.

closes #2373
This commit is contained in:
Jacob Heider 2023-07-05 18:09:15 -04:00 committed by Jacob Heider
parent d39668152e
commit 3d2d80e1f7

View file

@ -21,6 +21,19 @@ build:
ARGS="--install-links"
fi
# 9.8.0 removed the references to these modules.
- run: |
for MOD in ../workspaces/*; do
b=$(basename $MOD)
if test "${b#lib}" = "$b"; then
ln -s ../$MOD @npmcli/$b
else
ln -s $MOD .
fi
done
working-directory: node_modules
if: '>=9.8.0'
- node . install --global --prefix={{prefix}} $ARGS
# configures npm to install to ~/.local