Skip to content

Commit bd363d0

Browse files
authored
Merge pull request #23793 from abpframework/fix/version-validation-script
Fixing the folder check while validating the versions in `validate-versions` script
2 parents 30f478b + b76a175 commit bd363d0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

npm/scripts/validate-versions.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,18 @@ async function compare() {
3535
for (let i = 0; i < packageFolders.length; i++) {
3636
const folder = packageFolders[i];
3737
const pkgJsonPath = `${packagesPath}/${folder}/package.json`;
38+
39+
if (!(await fse.pathExists(pkgJsonPath))) {
40+
continue;
41+
}
42+
3843
let pkgJson;
3944

4045
try {
4146
pkgJson = await fse.readJSON(pkgJsonPath);
42-
} catch (error) {}
47+
} catch (error) {
48+
continue;
49+
}
4350

4451
if (
4552
!excludedPackages.includes(pkgJson.name) &&

0 commit comments

Comments
 (0)