Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
feat: disable registering of ts-node (#69)
Browse files Browse the repository at this point in the history
There are some use cases when you would not want oclif to load using ts-node for you, like if you are already running ts-node to run tests or if you want to run off the compiled code. This gives the user the option to disable it if they need to.
  • Loading branch information
amphro authored and jdx committed Jan 18, 2019
1 parent a67ce2b commit 3346db8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ts-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface TSConfig {
}

function registerTSNode(root: string) {
if (process.env.OCLIF_TS_NODE === '0') return
if (tsconfigs[root]) return
const tsconfig = loadTSConfig(root)
if (!tsconfig) return
Expand Down

0 comments on commit 3346db8

Please sign in to comment.