Skip to content

Commit 92f432d

Browse files
author
progfay
committed
feat: load source from bin/ghs.js
- without re-run `npm link`
1 parent 162c4de commit 92f432d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

bin/ghs.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require('../dist/index.js')

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "src/index.ts",
66
"bin": {
7-
"ghs": "dist/index.js"
7+
"ghs": "bin/ghs.js"
88
},
99
"scripts": {
1010
"test": "jest",

src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env node
2-
31
import arg from 'arg'
42
import chalk from 'chalk'
53
import { range } from './lib/range'

0 commit comments

Comments
 (0)