Skip to content

Commit

Permalink
Merge pull request #1877 from intuit/ts-configuration
Browse files Browse the repository at this point in the history
only ts-node/register for plugins if typescript is installed to the project
  • Loading branch information
hipstersmoothie committed Mar 14, 2021
2 parents b051e65 + be5c068 commit 157e92f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/auto.ts
Expand Up @@ -74,7 +74,9 @@ import { execSync } from "child_process";
import isBinary from "./utils/is-binary";
import { gitReset } from "./utils/git-reset";

import "ts-node/register/transpile-only";
if (require.resolve("typescript")) {
require("ts-node/register/transpile-only");
}

const proxyUrl = process.env.https_proxy || process.env.http_proxy;
const env = envCi();
Expand Down

0 comments on commit 157e92f

Please sign in to comment.