mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 13:44:08 +00:00
Merge deno_cli_snapshots into deno_cli (#3064)
This commit is contained in:
parent
9049213867
commit
b81e5db17a
148 changed files with 38 additions and 83 deletions
28
cli/js/version.ts
Normal file
28
cli/js/version.ts
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue