Merge deno_cli_snapshots into deno_cli (#3064)

This commit is contained in:
Ryan Dahl 2019-10-04 20:28:51 -04:00 committed by GitHub
parent 9049213867
commit b81e5db17a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
148 changed files with 38 additions and 83 deletions

28
cli/js/version.ts Normal file
View 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);
}