bundles: install yarn globally instead of in each individual bundle
This commit is contained in:
parent
193c038bab
commit
ddd29bef3b
5 changed files with 16 additions and 9 deletions
9
bundles/nodejs/items.py
Normal file
9
bundles/nodejs/items.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
actions = {
|
||||
'nodejs_install_yarn': {
|
||||
'command': 'npm install -g yarn@latest',
|
||||
'unless': 'test -e /usr/lib/node_modules/yarn',
|
||||
'needs': {
|
||||
'pkg_apt:nodejs',
|
||||
},
|
||||
},
|
||||
}
|
|
@ -3,6 +3,7 @@ defaults = {
|
|||
'additional_update_commands': {
|
||||
# update npm to latest version
|
||||
'npm install -g npm@latest',
|
||||
'npm install -g yarn@latest',
|
||||
},
|
||||
'repos': {
|
||||
'node': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue