Skip to content

Commit

Permalink
chore(): remove es5 check
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Nov 5, 2020
1 parent 971e4dc commit 0eb643d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ 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 || !hasEsmEs5 || !hasCjs) {
if (!hasEsm || !hasCjs) {
throw new Error('core build is not a production build');
}
}
Expand Down

0 comments on commit 0eb643d

Please sign in to comment.