Update yarn and npm

This commit is contained in:
Andrea Cardaci 2021-06-18 14:16:48 +02:00
parent ff4e89470d
commit 3466212c5d
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
---
functions:
shell:
- code: npm exec /bin/sh
- code: |
TF=$(mktemp -d)
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json

View File

@ -2,6 +2,10 @@
functions:
shell:
- code: yarn exec /bin/sh
- code: |
TF=$(mktemp -d)
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
yarn --cwd $TF install
sudo:
- code: sudo yarn exec /bin/sh
---