Skip to content

Commit f45df74

Browse files
committed
remove semicolons in check-dependencies.js
1 parent 38e47f1 commit f45df74

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/check-dependencies.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
const fs = require("fs");
2-
const path = require("path");
1+
const fs = require("fs")
2+
const path = require("path")
33

4-
const json = fs.readFileSync(path.join(__dirname, "..", "package.json"));
5-
const package = JSON.parse(json);
4+
const json = fs.readFileSync(path.join(__dirname, "..", "package.json"))
5+
const package = JSON.parse(json)
66

77
// https://stackoverflow.com/questions/175739/built-in-way-in-javascript-to-check-if-a-string-is-a-valid-number
88
function isAllowed(version) {
99
return version.startsWith("~") ||
1010
!isNaN(version[0]) ||
11-
version.startsWith("https://");
11+
version.startsWith("https://")
1212
}
1313

14-
let failed = 0;
14+
let failed = 0
1515

1616
for (let name in package.dependencies) {
1717
if (!isAllowed(package.dependencies[name])) {
18-
console.error(`package.json: The version number of ${name} must start with ~ or a number`);
19-
failed++;
18+
console.error(`package.json: The version number of ${name} must start with ~ or a number`)
19+
failed++
2020
}
2121
}
2222

2323
if (failed) {
24-
console.log("\nWe want to upgrade only patch versions of Uno, Fuselibs and other dependencies.");
25-
console.log("Minor version upgrades require a new Fuse SDK release to be made.");
24+
console.log("\nWe want to upgrade only patch versions of Uno, Fuselibs and other dependencies.")
25+
console.log("Minor version upgrades require a new Fuse SDK release to be made.")
2626
}
2727

28-
process.exit(failed);
28+
process.exit(failed)

0 commit comments

Comments
 (0)