Skip to content

Commit

Permalink
fix typescript require
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Mar 15, 2021
1 parent 3635bdc commit 197e133
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/core/src/auto.ts
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 197e133

Please sign in to comment.