From c7c679868ad0ddfae92f6c0899b300a4f93cbc04 Mon Sep 17 00:00:00 2001 From: Ron S Date: Mon, 16 Aug 2021 18:19:38 -0400 Subject: [PATCH] fix: Make executable with npx --- package.json | 3 ++- src/index.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b2fe80c..6177146 100755 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "extract-changelog-release", "version": "1.0.1", "description": "Extract release notes from latest entry in standard-version changelog", - "main": "dist/index.js", + "main": "./dist/index.js", + "bin": "./dist/index.js", "scripts": { "compile": "tsc", "build": "yarn clean && yarn compile", diff --git a/src/index.ts b/src/index.ts index a97a88d..da4e992 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ +#!/usr/bin/env node import path from 'path'; import * as fs from 'fs'; import minimist from 'minimist';