From 61117a11a19466a4bfd4fdaae38613d22c9ac8c6 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Fri, 13 Aug 2021 13:07:17 -0700 Subject: [PATCH] build: ensure getAssetContents is called in a async wrapper fn --- script/release/publish-to-npm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release/publish-to-npm.js b/script/release/publish-to-npm.js index f9acd7e24dd5..89e6d691034e 100644 --- a/script/release/publish-to-npm.js +++ b/script/release/publish-to-npm.js @@ -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`);