Skip to content

Commit

Permalink
Merge pull request #1885 from intuit/buggo
Browse files Browse the repository at this point in the history
fix typescript require
  • Loading branch information
hipstersmoothie authored Mar 15, 2021
2 parents 3635bdc + 197e133 commit e686888
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/core/src/auto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ import { execSync } from "child_process";
import isBinary from "./utils/is-binary";
import { gitReset } from "./utils/git-reset";

if (require.resolve("typescript")) {
require("ts-node/register/transpile-only");
try {
if (require.resolve("typescript")) {
require("ts-node/register/transpile-only");
}
} catch (error) {
// User doesn't have TS installed, cannot write TS plugins
}

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

0 comments on commit e686888

Please sign in to comment.