Skip to content

Commit

Permalink
fix: bin
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 13, 2022
1 parent 30c8593 commit 67d6310
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cli.ts → cli.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import minimist from 'minimist'
import changelogithub from './index'
import changelogithub from './dist/index.mjs'

const args = minimist(process.argv.slice(2), {
boolean: [
Expand All @@ -21,4 +21,4 @@ const args = minimist(process.argv.slice(2), {

args.token = args.token || process.env.GITHUB_TOKEN

await changelogithub(args as any)
changelogithub(args)
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"bin": "./cli.mjs",
"files": [
"dist/"
"dist",
"*.mjs"
],
"engines": {
"node": ">=12.0.0"
Expand All @@ -44,7 +46,7 @@
"lint": "eslint .",
"prepublishOnly": "nr build",
"release": "bumpp --commit --push --tag && npm publish",
"start": "esno src/cli.ts",
"start": "nr dev && node cli.mjs",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down

0 comments on commit 67d6310

Please sign in to comment.