From ce4a381d4faaaa271f6fe0782a31188af5ffc3a1 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 16 Nov 2020 12:54:59 -0500 Subject: [PATCH] chore(): re-add es5 check (#22504) This reverts commit 0eb643d5637b30b5790a55bb383c987cf8ad0502. --- .scripts/release.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.scripts/release.js b/.scripts/release.js index f2cd54834f..ff13bfe655 100644 --- a/.scripts/release.js +++ b/.scripts/release.js @@ -63,8 +63,9 @@ async function main() { function checkProductionRelease() { const corePath = common.projectPath('core'); const hasEsm = fs.existsSync(path.join(corePath, 'dist', 'esm')); + const hasEsmEs5 = fs.existsSync(path.join(corePath, 'dist', 'esm-es5')); const hasCjs = fs.existsSync(path.join(corePath, 'dist', 'cjs')); - if (!hasEsm || !hasCjs) { + if (!hasEsm || !hasEsmEs5 || !hasCjs) { throw new Error('core build is not a production build'); } }