bundlewrap/bundles/nodejs/metadata.py

31 lines
1,008 B
Python

@metadata_processor
def nodejs_apt_repos(metadata):
return {
'apt': {
'repos': {
'yarn': {
'key': '72ECF46A56B4AD39C907BBB71646B01B86E50310',
'items': [
'deb https://dl.yarnpkg.com/debian/ stable main',
],
},
'node': {
'key': '9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280',
'items': [
'deb https://deb.nodesource.com/node_10.x buster main',
'deb-src https://deb.nodesource.com/node_10.x buster main',
],
},
},
'unattended-upgrades': {
'sites': {
'deb.nodesource.com',
'dl.yarnpkg.com',
},
},
'packages': {
'nodejs': {},
'yarn': {},
},
},
}, DEFAULTS, DONE