Skip to content

Commit 1075018

Browse files
committed
compile error no longer occurs in TS3.2 to import package.json
1 parent aa9d83e commit 1075018

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cli/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import commander from "commander";
2-
// import {version} from "../../package.json";
3-
// work-around to avoid TS5505 error bug in TypeScript 3.1 https://github.com/Microsoft/TypeScript/issues/24715
4-
const {version} = require("../../package.json");
2+
import {version} from "../../package.json";
53
import * as commands from "../commands";
64

75
commander

0 commit comments

Comments
 (0)