build: ensure getAssetContents is called in a async wrapper fn

This commit is contained in:
Samuel Attard 2021-08-13 13:07:17 -07:00
parent 7132f36ddd
commit 61117a11a1
No known key found for this signature in database
GPG key ID: FB94249299E904FE

View file

@ -88,7 +88,7 @@ new Promise((resolve, reject) => {
}
return release;
})
.then((release) => {
.then(async (release) => {
const tsdAsset = release.assets.find((asset) => asset.name === 'electron.d.ts');
if (!tsdAsset) {
throw new Error(`cannot find electron.d.ts from v${rootPackageJson.version} release assets`);