Updates
This commit is contained in:
@@ -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`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user