From abc65134fcf34e2ecc0ee1035a70692d8040cd6d Mon Sep 17 00:00:00 2001 From: Snazzah Date: Sat, 22 Jun 2024 00:38:42 -0500 Subject: [PATCH] add version to client --- client/index.ts | 4 ++++ client/package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/client/index.ts b/client/index.ts index f688b80..a5dfa6b 100644 --- a/client/index.ts +++ b/client/index.ts @@ -6,6 +6,7 @@ import readline from 'node:readline/promises'; import { parse } from 'ini'; import MDBReader from 'mdb-reader'; import { diff } from 'just-diff'; +import { version } from './package.json'; const rl = readline.createInterface({ input: process.stdin, @@ -114,5 +115,8 @@ process.on("SIGINT", () => { }); rl.close(); + +console.log(`FDLogUp Client v${version}`); + // "Upload first" option if (process.argv[2] === '--upload') _upload(); diff --git a/client/package.json b/client/package.json index 255b72e..9808afe 100644 --- a/client/package.json +++ b/client/package.json @@ -1,5 +1,6 @@ { "name": "fdlogup-client", + "version": "1.0.0", "module": "index.ts", "type": "module", "scripts": {