fix(format): Remove redundant package.json property checks

This commit is contained in:
2024-10-23 22:11:18 +02:00
parent 924470407a
commit b98dc7a9fa
4 changed files with 3440 additions and 5011 deletions

View File

@ -70,23 +70,6 @@ export const run = async (projectArg: Project) => {
packageJson.scripts.buildDocs = `tsdoc`;
}
// check package.json
if (!packageJson.main) {
logger.log('error', 'no "main" property');
process.exit(0);
}
if (!packageJson.typings) {
logger.log('error', 'no "typings" property');
process.exit(0);
}
if (!packageJson.browserslist) {
packageJson.browserslist = ['last 1 chrome versions'];
}
if (!packageJson.main.includes('dist_') || !packageJson.typings.includes('dist_')) {
logger.log('error', 'check packagesJson main and typings');
process.exit(0);
}
// check for files
packageJson.files = [
'ts/**/*',