mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(build): remove ngc metadata and other unnecessary stuff from dist
remove ngc metadata and other unnecessary stuff from dist
This commit is contained in:
@ -15,8 +15,12 @@ export function buildIonicAngularCommonJs(excludeSpec: boolean, done: Function)
|
|||||||
}
|
}
|
||||||
|
|
||||||
copySwiperToPath(`${DIST_BUILD_COMMONJS_ROOT}/components/slides`, COMMONJS_MODULE);
|
copySwiperToPath(`${DIST_BUILD_COMMONJS_ROOT}/components/slides`, COMMONJS_MODULE);
|
||||||
// clean up any .ts files that remain, as well as unneeded swiper stuff
|
// clean up any .ts files that remain as well as ngc metadata
|
||||||
deleteFiles([`${DIST_BUILD_COMMONJS_ROOT}/**/*.ts`, `!${DIST_BUILD_COMMONJS_ROOT}/**/*.ngfactory.ts`, `!${DIST_BUILD_COMMONJS_ROOT}/**/*.d.ts`], done);
|
deleteFiles([`${DIST_BUILD_COMMONJS_ROOT}/**/*.ts`,
|
||||||
|
`${DIST_BUILD_COMMONJS_ROOT}/**/*metadata.json`,
|
||||||
|
`${DIST_BUILD_COMMONJS_ROOT}/node_modules`,
|
||||||
|
`${DIST_BUILD_COMMONJS_ROOT}/tsconfig.json`,
|
||||||
|
`!${DIST_BUILD_COMMONJS_ROOT}/**/*.d.ts`], done);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -32,8 +36,12 @@ export function buildIonicAngularEsm(done: Function) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
copySwiperToPath(`${DIST_BUILD_ROOT}/components/slides`, ES_MODULE);
|
copySwiperToPath(`${DIST_BUILD_ROOT}/components/slides`, ES_MODULE);
|
||||||
// clean up any .ts files that remain
|
// clean up any .ts files that remain as well as ngc metadata
|
||||||
deleteFiles([`${DIST_BUILD_ROOT}/**/*.ts`, `!${DIST_BUILD_ROOT}/**/*.ngfactory.ts`, `!${DIST_BUILD_ROOT}/**/*.d.ts`], done);
|
deleteFiles([`${DIST_BUILD_ROOT}/**/*.ts`,
|
||||||
|
`${DIST_BUILD_ROOT}/**/*metadata.json`,
|
||||||
|
`${DIST_BUILD_ROOT}/node_modules`,
|
||||||
|
`${DIST_BUILD_ROOT}/tsconfig.json`,
|
||||||
|
`!${DIST_BUILD_ROOT}/**/*.d.ts`], done);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user