Skip to content

Commit 7bc5f37

Browse files
committed
chore: remove unnecessary validation
1 parent 5238994 commit 7bc5f37

1 file changed

Lines changed: 41 additions & 41 deletions

File tree

scripts/publish.ts

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -356,47 +356,47 @@ async function run() {
356356
// execSync(`npm run types`, { encoding: 'utf8', stdio: 'inherit' })
357357
// console.info('')
358358

359-
console.info('Validating packages...');
360-
const failedValidations: string[] = [];
361-
362-
await Promise.all(
363-
packages.map(async pkg => {
364-
const pkgJson = await readPackageJson(
365-
path.resolve(rootDir, 'packages', pkg.packageDir, 'package.json')
366-
);
367-
368-
await Promise.all(
369-
(['module', 'main', 'types'] as const).map(async entryKey => {
370-
const entry = pkgJson[entryKey] as string;
371-
372-
if (!entry) {
373-
throw new Error(
374-
`Missing entry for "${entryKey}" in ${pkg.packageDir}/package.json!`
375-
);
376-
}
377-
378-
const filePath = path.resolve(
379-
rootDir,
380-
'packages',
381-
pkg.packageDir,
382-
entry
383-
);
384-
385-
try {
386-
await fsp.access(filePath);
387-
} catch (err) {
388-
failedValidations.push(`Missing build file: ${filePath}`);
389-
}
390-
})
391-
);
392-
})
393-
);
394-
console.info('');
395-
if (failedValidations.length > 0) {
396-
throw new Error(
397-
'Some packages failed validation:\n\n' + failedValidations.join('\n')
398-
);
399-
}
359+
// console.info('Validating packages...');
360+
// const failedValidations: string[] = [];
361+
362+
// await Promise.all(
363+
// packages.map(async pkg => {
364+
// const pkgJson = await readPackageJson(
365+
// path.resolve(rootDir, 'packages', pkg.packageDir, 'package.json')
366+
// );
367+
368+
// await Promise.all(
369+
// (['module', 'main', 'types'] as const).map(async entryKey => {
370+
// const entry = pkgJson[entryKey] as string;
371+
372+
// if (!entry) {
373+
// throw new Error(
374+
// `Missing entry for "${entryKey}" in ${pkg.packageDir}/package.json!`
375+
// );
376+
// }
377+
378+
// const filePath = path.resolve(
379+
// rootDir,
380+
// 'packages',
381+
// pkg.packageDir,
382+
// entry
383+
// );
384+
385+
// try {
386+
// await fsp.access(filePath);
387+
// } catch (err) {
388+
// failedValidations.push(`Missing build file: ${filePath}`);
389+
// }
390+
// })
391+
// );
392+
// })
393+
// );
394+
// console.info('');
395+
// if (failedValidations.length > 0) {
396+
// throw new Error(
397+
// 'Some packages failed validation:\n\n' + failedValidations.join('\n')
398+
// );
399+
// }
400400

401401
// console.info('Testing packages...');
402402
// execSync(`npm run test:ci`, { encoding: 'utf8' });

0 commit comments

Comments
 (0)