build: ensure getAssetContents is called in a async wrapper fn
This commit is contained in:
parent
7132f36ddd
commit
61117a11a1
1 changed files with 1 additions and 1 deletions
|
@ -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`);
|
||||
|
|
Loading…
Reference in a new issue