From 92402f1523bddbe403a8d87809ff401a5571f9b8 Mon Sep 17 00:00:00 2001 From: Max P Date: Wed, 14 Aug 2024 20:39:02 +0200 Subject: [PATCH] Add postinstall script to build TypeScript Added a new "postinstall" script to `package.json` to automatically build TypeScript files using the `build:tsc` command after dependencies are installed. This ensures that the TypeScript code is compiled immediately following an `npm install`, improving the setup process consistency. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 716e0a0..d9e343c 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "lint:fix": "eslint --fix --ext .ts .", "test:file": "jest --watch --onlyChanged --coverage=true --verbose", "test:verbose": "jest --verbose", - "version:show": "node -e \"console.log(require('./package.json').version)\"" + "version:show": "node -e \"console.log(require('./package.json').version)\"", + "postinstall": "npm run build:tsc" }, "repository": { "type": "git",