Skip to content

Commit 01ab977

Browse files
committed
Display TypeScript version
1 parent d426f15 commit 01ab977

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/bin/ctts.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import yargs from 'yargs/yargs';
2+
import * as ts from 'typescript';
3+
import pkg from '../../package.json';
24
import { run } from '..';
35

46
const argv = yargs(process.argv.slice(2))
57
.usage(`Usage: $0 [options] script.ts`)
6-
.version('v1.2.0')
8+
.version(`${pkg.name} ${pkg.version}\ntypescript ${ts.version}`)
79
.help()
810
.demandCommand(1, 1)
911
.string('_')

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"resolveJsonModule": true,
34
"strict": true,
45
"esModuleInterop": true
56
}

0 commit comments

Comments
 (0)