diff options
Diffstat (limited to 'cli/js/version.ts')
-rw-r--r-- | cli/js/version.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cli/js/version.ts b/cli/js/version.ts new file mode 100644 index 000000000..08ac58122 --- /dev/null +++ b/cli/js/version.ts @@ -0,0 +1,28 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. +interface Version { + deno: string; + v8: string; + typescript: string; +} + +export const version: Version = { + deno: "", + v8: "", + typescript: "" +}; + +/** + * Sets the deno, v8, and typescript versions and freezes the version object. + * @internal + */ +export function setVersions( + denoVersion: string, + v8Version: string, + tsVersion: string +): void { + version.deno = denoVersion; + version.v8 = v8Version; + version.typescript = tsVersion; + + Object.freeze(version); +} |