Skip to content

Commit b4ce76b

Browse files
committed
fix: npm should now exec app instead of opening script in editor
1 parent faf5afb commit b4ce76b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@ducanh2912/nettruyen-downloader",
2+
"name": "@ducanh2912/nettruyen-dl",
33
"version": "1.1.5",
44
"type": "module",
55
"files": [
@@ -10,9 +10,7 @@
1010
"build": "rimraf dist && rollup -c",
1111
"prepublishOnly": "npm run build"
1212
},
13-
"bin": {
14-
"ducanh-nettruyen-dl": "dist/index.js"
15-
},
13+
"bin": "./dist/index.js",
1614
"keywords": [
1715
"nettruyen",
1816
"net truyen"

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default {
88
output: {
99
file: "dist/index.js",
1010
format: "es",
11+
banner: "#!/usr/bin/env node"
1112
},
1213
plugins: [typescript()],
1314
};

0 commit comments

Comments
 (0)