Skip to content

Commit 384527a

Browse files
authored
Add -dev to version patch number in master (#21741)
1 parent 871e71d commit 384527a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/configurePrerelease.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function updateTsFile(tsFilePath: string, tsFileContents: string, majorMinor: st
5555
const parsedMajorMinor = majorMinorMatch[1];
5656
ts.Debug.assert(parsedMajorMinor === majorMinor, "versionMajorMinor does not match.", () => `${tsFilePath}: '${parsedMajorMinor}'; package.json: '${majorMinor}'`);
5757

58-
const versionRgx = /export const version = `\$\{versionMajorMinor\}\.(\d)`;/;
58+
const versionRgx = /export const version = `\$\{versionMajorMinor\}\.(\d)(-dev)?`;/;
5959
const patchMatch = versionRgx.exec(tsFileContents);
6060
ts.Debug.assert(patchMatch !== null, "The file seems to no longer have a string matching", () => versionRgx.toString());
6161
const parsedPatch = patchMatch[1];
@@ -85,4 +85,4 @@ function getPrereleasePatch(tag: string, plainPatch: string): string {
8585
return `${plainPatch}-${tag}.${timeStr}`;
8686
}
8787

88-
main();
88+
main();

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace ts {
66
// If changing the text in this section, be sure to test `configureNightly` too.
77
export const versionMajorMinor = "2.8";
88
/** The version of the TypeScript compiler release */
9-
export const version = `${versionMajorMinor}.0`;
9+
export const version = `${versionMajorMinor}.0-dev`;
1010
}
1111

1212
namespace ts {

0 commit comments

Comments
 (0)