Skip to content

Commit

Permalink
Make inspectable
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Dec 11, 2024
1 parent 3e674c4 commit 8837341
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chiri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ if (process.env.CHIRI_ENV === "dev")
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
(require("source-map-support") as typeof import("source-map-support")).install()

if (process.env.CHIRI_INSPECT)
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
require("inspector").open(+process.env.CHIRI_INSPECT_PORT! || undefined, process.env.CHIRI_INSPECT_HOST)

if (args.v) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
console.log(require(path.join(PACKAGE_ROOT, "package.json")).version)
Expand Down

0 comments on commit 8837341

Please sign in to comment.