Skip to content

Commit 9025c62

Browse files
authored
fix: command not found (#14)
1 parent 2c406e2 commit 9025c62

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"version": "0.0.0-development",
1515
"main": "dist/create-exposed-app.js",
16+
"bin": {
17+
"create-exposed-app": "dist/bin/create-exposed-app.js"
18+
},
1619
"scripts": {
1720
"pre-commit": "lint-staged && npm run build",
1821
"build": "run-p --print-label build:src build:dts",

src/bin/create-exposed-app.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env node
2+
3+
import { createApp } from "../create-app/create-app"
4+
import { setupProcess } from "../utils/process"
5+
6+
setupProcess()
7+
createApp()

src/create-exposed-app.ts

100755100644
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
#!/usr/bin/env node
2-
3-
import { createApp } from "./create-app/create-app"
4-
import { setupProcess } from "./utils/process"
5-
6-
setupProcess()
7-
createApp()
1+
export { createApp } from "./create-app/create-app"

0 commit comments

Comments
 (0)