Skip to content

Commit

Permalink
fix(create-rsbuild): broken shebang line in bin file (#3344)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Sep 2, 2024
1 parent 28b1e43 commit aefefd5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/create-rsbuild/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-rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
},
"main": "./dist/index.js",
"bin": {
"create-rsbuild": "./dist/index.js"
"create-rsbuild": "./bin.js"
},
"files": [
"template-*",
"dist"
"dist",
"bin.js"
],
"scripts": {
"build": "rslib build",
Expand Down
1 change: 0 additions & 1 deletion packages/create-rsbuild/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 aefefd5

Please sign in to comment.