mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
chore(): remove es5 check
This commit is contained in:
@ -63,9 +63,8 @@ async function main() {
|
|||||||
function checkProductionRelease() {
|
function checkProductionRelease() {
|
||||||
const corePath = common.projectPath('core');
|
const corePath = common.projectPath('core');
|
||||||
const hasEsm = fs.existsSync(path.join(corePath, 'dist', 'esm'));
|
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'));
|
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');
|
throw new Error('core build is not a production build');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user