diff --git a/bin/wtc b/bin/wtc new file mode 100755 index 0000000..d5bd086 --- /dev/null +++ b/bin/wtc @@ -0,0 +1,2 @@ +#!/usr/bin/env node +import '../target/main.js'; diff --git a/package-lock.json b/package-lock.json index 6c325ea..d5a433d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 519964b..89a3125 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "description": "CLI work time calculation utility", "type": "module", "main": "src/main.ts", + "bin": { + "wtc": "./bin/wtc" + }, "scripts": { "build": "tsc" },