Browse Source

Merge pull request #23793 from abpframework/fix/version-validation-script

Fixing the folder check while validating the versions in `validate-versions` script
pull/23807/head
selman koc 10 months ago
committed by GitHub
parent
commit
bd363d0836
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 9
      npm/scripts/validate-versions.ts

9
npm/scripts/validate-versions.ts

@ -35,11 +35,18 @@ async function compare() {
for (let i = 0; i < packageFolders.length; i++) {
const folder = packageFolders[i];
const pkgJsonPath = `${packagesPath}/${folder}/package.json`;
if (!(await fse.pathExists(pkgJsonPath))) {
continue;
}
let pkgJson;
try {
pkgJson = await fse.readJSON(pkgJsonPath);
} catch (error) {}
} catch (error) {
continue;
}
if (
!excludedPackages.includes(pkgJson.name) &&

Loading…
Cancel
Save