mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 00:30:48 +03:00
fix(npm)
v9.8.0 removed links to the other @npmcli module workspaces. closes #2373
This commit is contained in:
parent
d39668152e
commit
3d2d80e1f7
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue