Skip to content

Commit

Permalink
skip @eslint/js install if fails
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech authored Feb 12, 2025
1 parent 1439ff0 commit e9c0de7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ if (eslintVersion === version) {
} else {
exec("npm install");
exec(`npm install eslint@${eslintVersion} --save-dev --save-exact`);
exec(`npm install @eslint/js@${eslintVersion} --save-dev --save-exact`);
try {
exec(`npm install @eslint/js@${eslintVersion} --save-dev --save-exact`);
} catch(ex) {
console.error(`Skiping @eslint/js@${eslintVersion} install.`);
}
exec("npm run lint");
exec("npm run build");
exec("npm test");
Expand Down

0 comments on commit e9c0de7

Please sign in to comment.