Skip to content

Commit 316892a

Browse files
committed
use require() instead of import in order to avoid TS3.1 JSON import bug
1 parent be26417 commit 316892a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cli/acc.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import commander from "commander";
2-
import {version} from "../../package.json";
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");
35
import {AtCoder} from "../atcoder";
46
import {OnlineJudge} from "../facade/oj";
57
import {init} from "../project";

0 commit comments

Comments
 (0)