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",
"version": "0.0.1",
"license": "MIT",
"dependencies": {
"chalk": "^5.3.0",
"dayjs": "^1.11.10"
},
"bin": {
"wtc": "bin/wtc"
},
"devDependencies": {
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",

View file

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