Skip to content

Commit dbdedf6

Browse files
committed
feat: add bin entry for xsh and update shebang in index.js
1 parent 6330eb4 commit dbdedf6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"author": "sanderhd",
2020
"type": "module",
2121
"main": "src/index.js",
22+
"bin": {
23+
"xsh": "./src/index.js"
24+
},
2225
"scripts": {
2326
"xsh": "node src/index.js"
2427
},

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import chalk from "chalk";
24
import readline from "node:readline"
35
import { exec } from "node:child_process"

0 commit comments

Comments
 (0)