Add binary

This commit is contained in:
Marko Korhonen 2023-11-14 18:05:15 +02:00
parent d56facf589
commit 349cae5f11
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
3 changed files with 9 additions and 0 deletions

2
bin/wtc Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env node
import '../target/main.js';

4
package-lock.json generated
View file

@ -7,10 +7,14 @@
"": { "": {
"name": "work-time-calculator", "name": "work-time-calculator",
"version": "0.0.1", "version": "0.0.1",
"license": "MIT",
"dependencies": { "dependencies": {
"chalk": "^5.3.0", "chalk": "^5.3.0",
"dayjs": "^1.11.10" "dayjs": "^1.11.10"
}, },
"bin": {
"wtc": "bin/wtc"
},
"devDependencies": { "devDependencies": {
"@types/node": "^20.9.0", "@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0", "@typescript-eslint/eslint-plugin": "^6.10.0",

View file

@ -6,6 +6,9 @@
"description": "CLI work time calculation utility", "description": "CLI work time calculation utility",
"type": "module", "type": "module",
"main": "src/main.ts", "main": "src/main.ts",
"bin": {
"wtc": "./bin/wtc"
},
"scripts": { "scripts": {
"build": "tsc" "build": "tsc"
}, },