File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11/// <reference types="node"/>
2- import { normalize } from "path" ;
2+ import { normalize , relative } from "path" ;
33import assert = require( "assert" ) ;
44import { readFileSync , writeFileSync } from "fs" ;
5- const args = process . argv . slice ( 2 ) ;
6-
75
86/**
97 * A minimal description for a parsed package.json object.
@@ -15,9 +13,11 @@ interface PackageJson {
1513}
1614
1715function main ( ) : void {
16+ const args = process . argv . slice ( 2 ) ;
1817 if ( args . length < 3 ) {
18+ const thisProgramName = relative ( process . cwd ( ) , __filename ) ;
1919 console . log ( "Usage:" ) ;
20- console . log ( " \tnode configureNightly.js <dev|insiders> <package.json location> <file containing version>" ) ;
20+ console . log ( ` \tnode ${ thisProgramName } <dev|insiders> <package.json location> <file containing version>` ) ;
2121 return ;
2222 }
2323
Original file line number Diff line number Diff line change 11namespace ts {
2- // WARNING: The script `configureNightly .ts` uses a regexp to parse out these values.
3- // If changing the text in this section, be sure to test `configureNightly ` too.
2+ // WARNING: The script `configurePrerelease .ts` uses a regexp to parse out these values.
3+ // If changing the text in this section, be sure to test `configurePrerelease ` too.
44 export const versionMajorMinor = "3.8" ;
55 /** The version of the TypeScript compiler release */
66 export const version = `${ versionMajorMinor } .0-dev` ;
You can’t perform that action at this time.
0 commit comments