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.
This commit is contained in:
2024-08-14 20:39:02 +02:00
parent 3dbbfc8e1e
commit 92402f1523

View File

@@ -10,7 +10,8 @@
"lint:fix": "eslint --fix --ext .ts .", "lint:fix": "eslint --fix --ext .ts .",
"test:file": "jest --watch --onlyChanged --coverage=true --verbose", "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)\"" "version:show": "node -e \"console.log(require('./package.json').version)\"",
"postinstall": "npm run build:tsc"
}, },
"repository": { "repository": {
"type": "git", "type": "git",