chore: check if deps exist

This commit is contained in:
Daniel Roe 2023-08-11 16:14:49 +01:00
parent b5b2b47feb
commit 817c12f026

View File

@ -22,7 +22,7 @@ async function main () {
updateDeps: true
})
for (const [name, nightlyName] of Object.entries(nightlyPackages)) {
if (name in pkg.data.dependencies) {
if (pkg.data.dependencies && name in pkg.data.dependencies) {
pkg.data.dependencies[name] = `npm:${nightlyName}@latest`
}
}