diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-09-04 11:12:21 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-03 22:12:21 -0400 |
commit | 249db0f7d91d5e895906078f92b7d31c76b96121 (patch) | |
tree | 3a9dc5f04ce1bd01b4762f06ff24dd6127f26ae5 /js/version.ts | |
parent | e9908453df970b1cdf90483892bc9e794382fccc (diff) |
Handle typescript version in rust (#2855)
Diffstat (limited to 'js/version.ts')
-rw-r--r-- | js/version.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/js/version.ts b/js/version.ts index 3ceade24e..08ac58122 100644 --- a/js/version.ts +++ b/js/version.ts @@ -8,17 +8,21 @@ interface Version { export const version: Version = { deno: "", v8: "", - // This string will be replaced by rollup - typescript: `DENO_REPLACE_TS_VERSION` + typescript: "" }; /** - * Sets the deno and v8 versions and freezes the version object. + * Sets the deno, v8, and typescript versions and freezes the version object. * @internal */ -export function setVersions(denoVersion: string, v8Version: string): void { +export function setVersions( + denoVersion: string, + v8Version: string, + tsVersion: string +): void { version.deno = denoVersion; version.v8 = v8Version; + version.typescript = tsVersion; Object.freeze(version); } |