Skip to content

Commit d135cbd

Browse files
authored
chore(create-rslib): remove shebang workaround (#466)
1 parent bc95851 commit d135cbd

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/create-rslib/bin.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/create-rslib/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
},
1616
"main": "./dist/index.js",
1717
"bin": {
18-
"create-rslib": "./bin.js"
18+
"create-rslib": "./dist/index.js"
1919
},
2020
"files": [
2121
"template-*",
22-
"dist",
23-
"bin.js"
22+
"dist"
2423
],
2524
"scripts": {
2625
"build": "rslib build && pnpm generate-templates",

packages/create-rslib/src/index.ts

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 path from 'node:path';
24
import { fileURLToPath } from 'node:url';
35
import {

0 commit comments

Comments
 (0)