mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: ensure getAssetContents is called in a async wrapper fn
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user