Skip to content

Commit

Permalink
fix(create-rslib): broken shebang line in bin file (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Sep 2, 2024
1 parent e19f99b commit d68915d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/create-rslib/bin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import './dist/index.js';
5 changes: 3 additions & 2 deletions packages/create-rslib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
},
"main": "./dist/index.js",
"bin": {
"create-rslib": "./dist/index.js"
"create-rslib": "./bin.js"
},
"files": [
"template-*",
"dist"
"dist",
"bin.js"
],
"scripts": {
"build": "rslib build",
Expand Down
1 change: 0 additions & 1 deletion packages/create-rslib/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node
import path from 'node:path';
import {
type Argv,
Expand Down

0 comments on commit d68915d

Please sign in to comment.