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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user