From d044e0680a9115645d71d17174ca25d02082745e Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Mon, 6 Jan 2020 16:38:46 -0800 Subject: [PATCH] Renamed references to 'configurePrerelease'. (#35997) --- scripts/configurePrerelease.ts | 8 ++++---- src/compiler/corePublic.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/configurePrerelease.ts b/scripts/configurePrerelease.ts index e877019d19b..94fdefb361e 100644 --- a/scripts/configurePrerelease.ts +++ b/scripts/configurePrerelease.ts @@ -1,9 +1,7 @@ /// -import { normalize } from "path"; +import { normalize, relative } from "path"; import assert = require("assert"); import { readFileSync, writeFileSync } from "fs"; -const args = process.argv.slice(2); - /** * A minimal description for a parsed package.json object. @@ -15,9 +13,11 @@ interface PackageJson { } function main(): void { + const args = process.argv.slice(2); if (args.length < 3) { + const thisProgramName = relative(process.cwd(), __filename); console.log("Usage:"); - console.log("\tnode configureNightly.js "); + console.log(`\tnode ${thisProgramName} `); return; } diff --git a/src/compiler/corePublic.ts b/src/compiler/corePublic.ts index c1c1c97b950..fcbd0cf7e07 100644 --- a/src/compiler/corePublic.ts +++ b/src/compiler/corePublic.ts @@ -1,6 +1,6 @@ namespace ts { - // WARNING: The script `configureNightly.ts` uses a regexp to parse out these values. - // If changing the text in this section, be sure to test `configureNightly` too. + // WARNING: The script `configurePrerelease.ts` uses a regexp to parse out these values. + // If changing the text in this section, be sure to test `configurePrerelease` too. export const versionMajorMinor = "3.8"; /** The version of the TypeScript compiler release */ export const version = `${versionMajorMinor}.0-dev`;