@@ -35,7 +35,7 @@ var compilerSources = [
35
35
"checker.ts" ,
36
36
"emitter.ts" ,
37
37
"commandLineParser.ts" ,
38
- "tc .ts" ,
38
+ "tsc .ts" ,
39
39
"diagnosticInformationMap.generated.ts"
40
40
] . map ( function ( f ) {
41
41
return path . join ( compilerDirectory , f ) ;
@@ -134,7 +134,7 @@ var useDebugMode = false;
134
134
function compileFile ( outFile , sources , prereqs , prefixes , useBuiltCompiler , noOutFile ) {
135
135
file ( outFile , prereqs , function ( ) {
136
136
var dir = useBuiltCompiler ? builtLocalDirectory : LKGDirectory ;
137
- var compilerFilename = "tc .js" ;
137
+ var compilerFilename = "tsc .js" ;
138
138
var options = "-removeComments --module commonjs -noImplicitAny " ; //" -propagateEnumConstants "
139
139
140
140
var cmd = ( process . env . host || process . env . TYPESCRIPT_HOST || "node" ) + " " + dir + compilerFilename + " " + options + " " ;
@@ -230,15 +230,15 @@ task("generate-diagnostics", [diagnosticInfoMapTs])
230
230
231
231
232
232
// Local target to build the compiler and services
233
- var tcFile = path . join ( builtLocalDirectory , "tc .js" ) ;
234
- compileFile ( tcFile , compilerSources , [ builtLocalDirectory , copyright ] . concat ( compilerSources ) , [ copyright ] , /*useBuiltCompiler:*/ false ) ;
233
+ var tscFile = path . join ( builtLocalDirectory , "tsc .js" ) ;
234
+ compileFile ( tscFile , compilerSources , [ builtLocalDirectory , copyright ] . concat ( compilerSources ) , [ copyright ] , /*useBuiltCompiler:*/ false ) ;
235
235
236
- var tcServicesFile = path . join ( builtLocalDirectory , "typescriptServices.js" ) ;
237
- compileFile ( tcServicesFile , servicesSources , [ builtLocalDirectory , copyright ] . concat ( servicesSources ) , [ copyright ] , /*useBuiltCompiler:*/ true ) ;
236
+ var servicesFile = path . join ( builtLocalDirectory , "typescriptServices.js" ) ;
237
+ compileFile ( servicesFile , servicesSources , [ builtLocalDirectory , copyright ] . concat ( servicesSources ) , [ copyright ] , /*useBuiltCompiler:*/ true ) ;
238
238
239
239
// Local target to build the compiler and services
240
240
desc ( "Builds the full compiler and services" ) ;
241
- task ( "local" , [ "generate-diagnostics" , "lib" , tcFile , tcServicesFile ] ) ;
241
+ task ( "local" , [ "generate-diagnostics" , "lib" , tscFile , servicesFile ] ) ;
242
242
243
243
244
244
// Local target to build the compiler and services
@@ -261,7 +261,7 @@ task("clean", function() {
261
261
// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
262
262
desc ( "Makes a new LKG out of the built js files" ) ;
263
263
task ( "LKG" , libraryTargets , function ( ) {
264
- var expectedFiles = [ tcFile , tcServicesFile ] . concat ( libraryTargets ) ;
264
+ var expectedFiles = [ tscFile , servicesFile ] . concat ( libraryTargets ) ;
265
265
var missingFiles = expectedFiles . filter ( function ( f ) {
266
266
return ! fs . existsSync ( f ) ;
267
267
} ) ;
@@ -285,7 +285,7 @@ directory(builtLocalDirectory);
285
285
286
286
// Task to build the tests infrastructure using the built compiler
287
287
var run = path . join ( builtLocalDirectory , "run.js" ) ;
288
- compileFile ( run , harnessSources , [ builtLocalDirectory , tcFile ] . concat ( libraryTargets ) . concat ( harnessSources ) , [ ] , /*useBuiltCompiler:*/ true ) ;
288
+ compileFile ( run , harnessSources , [ builtLocalDirectory , tscFile ] . concat ( libraryTargets ) . concat ( harnessSources ) , [ ] , /*useBuiltCompiler:*/ true ) ;
289
289
290
290
var localBaseline = "tests/baselines/local/" ;
291
291
var refBaseline = "tests/baselines/reference/" ;
@@ -385,7 +385,7 @@ task("generate-code-coverage", ["tests", builtLocalDirectory], function () {
385
385
// Browser tests
386
386
var nodeServerOutFile = 'tests/webTestServer.js'
387
387
var nodeServerInFile = 'tests/webTestServer.ts'
388
- compileFile ( nodeServerOutFile , [ nodeServerInFile ] , [ builtLocalDirectory , tcFile ] , [ ] , true , true ) ;
388
+ compileFile ( nodeServerOutFile , [ nodeServerInFile ] , [ builtLocalDirectory , tscFile ] , [ ] , true , true ) ;
389
389
390
390
desc ( "Runs browserify on run.js to produce a file suitable for running tests in the browser" ) ;
391
391
task ( "browserify" , [ "tests" , builtLocalDirectory , nodeServerOutFile ] , function ( ) {
@@ -460,16 +460,16 @@ task("baseline-accept-rwc", function() {
460
460
// Webhost
461
461
var webhostPath = "tests/webhost/webtsc.ts" ;
462
462
var webhostJsPath = "tests/webhost/webtsc.js" ;
463
- compileFile ( webhostJsPath , [ webhostPath ] , [ tcFile , webhostPath ] . concat ( libraryTargets ) , [ ] , true ) ;
463
+ compileFile ( webhostJsPath , [ webhostPath ] , [ tscFile , webhostPath ] . concat ( libraryTargets ) , [ ] , true ) ;
464
464
465
465
desc ( "Builds the tsc web host" ) ;
466
466
task ( "webhost" , [ webhostJsPath ] , function ( ) {
467
467
jake . cpR ( path . join ( builtLocalDirectory , "lib.d.ts" ) , "tests/webhost/" , { silent : true } ) ;
468
468
} ) ;
469
469
470
470
// Perf compiler
471
- var perftcPath = "tests/perftc .ts" ;
472
- var perftcJsPath = "built/local/perftc .js" ;
473
- compileFile ( perftcJsPath , [ perftcPath ] , [ tcFile , perftcPath , "tests/perfsys.ts" ] . concat ( libraryTargets ) , [ ] , true ) ;
471
+ var perftscPath = "tests/perftsc .ts" ;
472
+ var perftscJsPath = "built/local/perftsc .js" ;
473
+ compileFile ( perftscJsPath , [ perftscPath ] , [ tscFile , perftscPath , "tests/perfsys.ts" ] . concat ( libraryTargets ) , [ ] , true ) ;
474
474
desc ( "Builds augmented version of the compiler for perf tests" ) ;
475
- task ( "perftc " , [ perftcJsPath ] ) ;
475
+ task ( "perftsc " , [ perftscJsPath ] ) ;
0 commit comments