How to see the typescript version is used in current deno version?
Asked Answered
R

4

8

I tried with deno -V, it gives only deno's version and does not include typescript version.

$deno -V
deno 1.0.0-rc2  
Renaterenato answered 17/5, 2020 at 16:47 Comment(0)
A
7

You can use --version with the latest versions binary

$ deno --version

OR Use deno shell

$ deno
> Deno.version

Deno.version
{ deno: "1.0.0", v8: "8.4.300", typescript: "3.9.2" }

Or using eval command

$ deno eval "console.log(Deno.version)"
// OR
$ deno eval "console.log(Deno.version.typescript)"
Assurance answered 17/5, 2020 at 16:52 Comment(0)
G
1

Typing deno --version gives you full informations

$ deno --version
deno 1.0.0
v8 8.4.300
typescript 3.9.2
Goosefoot answered 17/5, 2020 at 18:30 Comment(0)
S
1

01. deno --version will gives you typescript version, deno version and v8 version

$ deno --version
deno 1.0.0
v8 8.4.300
typescript 3.9.2

02. By using deno shell and providing Deno.version.typescript will gives typescript version directly.

$ deno
> Deno.version.typescript
3.9.2

enter image description here

Sinotibetan answered 18/5, 2020 at 10:53 Comment(0)
K
-1

At the moment of writing the answer, the typescript is bundled in Deno as a Git submodule, which you can find here on GitHub, which has a revision of 551f0dd9a1b57ecd527a665b0af7fc98cd107af6, which in turn corresponds to version 3.9.2.

Although, the question about printing the TypeScript version from deno CLI is a courtesy of Deno developers.

Kemper answered 17/5, 2020 at 16:52 Comment(1)
u can use console.log(Deno.version)Assurance

© 2022 - 2024 — McMap. All rights reserved.