-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bin): use execPath from app when setting NODE_PATH in bin
- Loading branch information
1 parent
8ed3563
commit 4df9867
Showing
3 changed files
with
256 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } | ||
) |
Oops, something went wrong.