Skip to content

Commit

Permalink
fix(bin): use execPath from app when setting NODE_PATH in bin
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Sep 26, 2024
1 parent 8ed3563 commit 4df9867
Show file tree
Hide file tree
Showing 3 changed files with 256 additions and 219 deletions.
16 changes: 13 additions & 3 deletions src/cli/create-bin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { Bin } from "../core/enum.js"
import type { Script } from "../types/core.ts"
import { createBinFromScript } from "./lib/utils.js"

let type = await arg<Bin>("Select type:", Object.values(Bin))
let type = await arg<Bin>(
"Select type:",
Object.values(Bin)
)

let script = await selectScript("Create bin from which script?", false)
await createBinFromScript(type, script)
let script = await selectScript(
"Create bin from which script?",
false
)
await createBinFromScript(
type,
script as Script & { execPath: string }
)
Loading

0 comments on commit 4df9867

Please sign in to comment.