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
+4 -4
View File
@@ -17,13 +17,13 @@ const confFileProvidedPath = process.argv[process.argv.length - 1];
if (confFileProvidedPath === "--version" || confFileProvidedPath === "-v") {
try {
const packageJson = fs.readFileSync(
path.resolve(__dirname, "package.json"),
"utf8"
path.resolve(__dirname, "../package.json"),
"utf-8"
);
console.log(`Turbo Sync Version: ${JSON.parse(packageJson).version}`);
} catch (error) {
} catch (error: any) {
console.log(
"Turbo Sync Version fetch failed! \nNo Worries, Turbo Sync is still installed properly"
`Turbo Sync Version fetch failed! ${error.message} \nNo Worries, Turbo Sync is still installed properly`
);
}