From 384527aa096b63b838a4468ad3625291d01d11ea Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Wed, 7 Feb 2018 23:45:37 -0800 Subject: [PATCH] Add `-dev` to version patch number in master (#21741) --- scripts/configurePrerelease.ts | 4 ++-- src/compiler/core.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/configurePrerelease.ts b/scripts/configurePrerelease.ts index a63490ca051..d17ddb963b1 100644 --- a/scripts/configurePrerelease.ts +++ b/scripts/configurePrerelease.ts @@ -55,7 +55,7 @@ function updateTsFile(tsFilePath: string, tsFileContents: string, majorMinor: st const parsedMajorMinor = majorMinorMatch[1]; ts.Debug.assert(parsedMajorMinor === majorMinor, "versionMajorMinor does not match.", () => `${tsFilePath}: '${parsedMajorMinor}'; package.json: '${majorMinor}'`); - const versionRgx = /export const version = `\$\{versionMajorMinor\}\.(\d)`;/; + const versionRgx = /export const version = `\$\{versionMajorMinor\}\.(\d)(-dev)?`;/; const patchMatch = versionRgx.exec(tsFileContents); ts.Debug.assert(patchMatch !== null, "The file seems to no longer have a string matching", () => versionRgx.toString()); const parsedPatch = patchMatch[1]; @@ -85,4 +85,4 @@ function getPrereleasePatch(tag: string, plainPatch: string): string { return `${plainPatch}-${tag}.${timeStr}`; } -main(); \ No newline at end of file +main(); diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 5ab8251d5f5..33aae7c8ea0 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -6,7 +6,7 @@ namespace ts { // If changing the text in this section, be sure to test `configureNightly` too. export const versionMajorMinor = "2.8"; /** The version of the TypeScript compiler release */ - export const version = `${versionMajorMinor}.0`; + export const version = `${versionMajorMinor}.0-dev`; } namespace ts {