parent
390c49394a
commit
fd476e08c2
|
@ -2,12 +2,14 @@
|
|||
functions:
|
||||
shell:
|
||||
- code: npm exec /bin/sh
|
||||
- code: |
|
||||
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `npm -C $TF run preinstall`.
|
||||
code: |
|
||||
TF=$(mktemp -d)
|
||||
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
|
||||
npm -C $TF i
|
||||
sudo:
|
||||
- code: |
|
||||
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `npm -C $TF run preinstall`.
|
||||
code: |
|
||||
TF=$(mktemp -d)
|
||||
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
|
||||
sudo npm -C $TF --unsafe-perm i
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
functions:
|
||||
shell:
|
||||
- code: yarn exec /bin/sh
|
||||
- code: |
|
||||
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `yarn --cwd $TF run preinstall`.
|
||||
code: |
|
||||
TF=$(mktemp -d)
|
||||
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
|
||||
yarn --cwd $TF install
|
||||
|
|
Loading…
Reference in New Issue