Add binary
This commit is contained in:
parent
d56facf589
commit
349cae5f11
3 changed files with 9 additions and 0 deletions
2
bin/wtc
Executable file
2
bin/wtc
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
import '../target/main.js';
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue