bundlewrap/bundles/nodejs/metadata.py

32 lines
1 KiB
Python
Raw Normal View History

2020-02-29 14:42:54 +00:00
@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': {
2020-05-23 15:01:30 +00:00
'origins': {
'o=Node Source,n=buster,l=Node Source,c=main',
'o=yarn,a=stable,n=stable,l=yarn-stable,c=main',
2020-02-29 14:42:54 +00:00
},
},
'packages': {
'nodejs': {},
'yarn': {},
},
2020-02-29 14:42:54 +00:00
},
}, DEFAULTS, DONE