Skip to content

Commit b8ec243

Browse files
authored
fix(postinstall): install @latest TypeScript if forced (#30)
1 parent cd7e8a5 commit b8ec243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function installTypescript({force = false} = {}) {
6969
if (installedTypeScriptVersion && !force) {
7070
console.log("Project already targets TypeScript " + installedTypeScriptVersion);
7171
} else {
72-
const command = force ? "npm install -D typescript" : "npm update -D typescript";
72+
const command = force ? "npm install -D typescript@latest" : "npm update -D typescript";
7373

7474
console.log("Installing TypeScript...");
7575

0 commit comments

Comments
 (0)