chore(): re-add es5 check (#22504)

This reverts commit 0eb643d563.
This commit is contained in:
Liam DeBeasi
2020-11-16 12:54:59 -05:00
committed by GitHub
parent 2d878fc4f6
commit ce4a381d4f

View File

@@ -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');
}
}