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

Commit

Permalink
Resolve localTs path (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant authored and sandersn committed May 16, 2019
1 parent 8839b17 commit 1daede3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { isTypeScriptVersion, parseTypeScriptVersionLine, TypeScriptVersion } from "definitelytyped-header-parser";
import { readdir, readFile, stat } from "fs-extra";
import { basename, dirname, join as joinPaths } from "path";
import { basename, dirname, join as joinPaths, resolve } from "path";

import { checkPackageJson, checkTsconfig } from "./checks";
import { cleanInstalls, installAll, installNext } from "./installer";
Expand All @@ -23,7 +23,7 @@ async function main(): Promise<void> {
if (arg.startsWith("--")) {
throw new Error("Looking for local path for TS, but got " + arg);
}
tsLocal = arg;
tsLocal = resolve(arg);
lookingForTsLocal = false;
continue;
}
Expand Down

0 comments on commit 1daede3

Please sign in to comment.