File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
/// <reference types="node"/>
2
- import { normalize } from "path" ;
2
+ import { normalize , relative } from "path" ;
3
3
import assert = require( "assert" ) ;
4
4
import { readFileSync , writeFileSync } from "fs" ;
5
- const args = process . argv . slice ( 2 ) ;
6
-
7
5
8
6
/**
9
7
* A minimal description for a parsed package.json object.
@@ -15,9 +13,11 @@ interface PackageJson {
15
13
}
16
14
17
15
function main ( ) : void {
16
+ const args = process . argv . slice ( 2 ) ;
18
17
if ( args . length < 3 ) {
18
+ const thisProgramName = relative ( process . cwd ( ) , __filename ) ;
19
19
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>` ) ;
21
21
return ;
22
22
}
23
23
Original file line number Diff line number Diff line change 1
1
namespace 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.
4
4
export const versionMajorMinor = "3.8" ;
5
5
/** The version of the TypeScript compiler release */
6
6
export const version = `${ versionMajorMinor } .0-dev` ;
You can’t perform that action at this time.
0 commit comments