This commit is contained in:
Benjamin Toby
2025-02-04 13:48:47 +01:00
parent efcee1bb11
commit accf486151
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -12,11 +12,11 @@ global.SYNCING = false;
const confFileProvidedPath = process.argv[process.argv.length - 1];
if (confFileProvidedPath === "--version" || confFileProvidedPath === "-v") {
try {
const packageJson = fs_1.default.readFileSync(path_1.default.resolve(__dirname, "package.json"), "utf8");
const packageJson = fs_1.default.readFileSync(path_1.default.resolve(__dirname, "../package.json"), "utf-8");
console.log(`Turbo Sync Version: ${JSON.parse(packageJson).version}`);
}
catch (error) {
console.log("Turbo Sync Version fetch failed! \nNo Worries, Turbo Sync is still installed properly");
console.log(`Turbo Sync Version fetch failed! ${error.message} \nNo Worries, Turbo Sync is still installed properly`);
}
process.exit(6);
}