From ea50cf5f7752ddc4cd83053aa3c3cc99710b249e Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Sat, 30 Aug 2025 11:12:29 -0500 Subject: [PATCH] files and bin --- package-lock.json | 3 +++ package.json | 6 ++++++ src/index.ts | 1 + 3 files changed, 10 insertions(+) diff --git a/package-lock.json b/package-lock.json index b387e24..d9411ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,9 @@ "json5": "2.2.3", "openweather-api-node": "3.1.5" }, + "bin": { + "morning-report": "distribution/src/index.js" + }, "devDependencies": { "@types/node": "24.3.0", "@vitest/coverage-v8": "3.2.4", diff --git a/package.json b/package.json index 082755d..3e660be 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,12 @@ }, "type": "module", "main": "distribution/index.js", + "bin": { + "morning-report": "./distribution/src/index.js" + }, + "files": [ + "distribution" + ], "scripts": { "build": "tsc", "start": "node distribution/src/index.js", diff --git a/src/index.ts b/src/index.ts index d75e4e1..478ebdd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +#!/usr/bin/env node import path from 'path'; import fsp from 'fs/promises'; import json5 from 'json5';