From 1389dfc947c27c5a4755fc7886830926e6a3bd6a Mon Sep 17 00:00:00 2001 From: Max P Date: Wed, 14 Aug 2024 19:55:11 +0200 Subject: [PATCH] Add npm script to display current version Introduced a new script `version:show` to easily display the current project version from the package.json. This enhances developer efficiency by providing quick access to the version number. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index af4d51c..716e0a0 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "lint": "eslint --ext .ts .", "lint:fix": "eslint --fix --ext .ts .", "test:file": "jest --watch --onlyChanged --coverage=true --verbose", - "test:verbose": "jest --verbose" + "test:verbose": "jest --verbose", + "version:show": "node -e \"console.log(require('./package.json').version)\"" }, "repository": { "type": "git",