Skip to content

Commit 1a4a822

Browse files
committed
Merge pull request #386 from Microsoft/tsc
rename tc.js to tsc.js
2 parents 083d9a1 + a90c62b commit 1a4a822

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

Jakefile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var compilerSources = [
3535
"checker.ts",
3636
"emitter.ts",
3737
"commandLineParser.ts",
38-
"tc.ts",
38+
"tsc.ts",
3939
"diagnosticInformationMap.generated.ts"
4040
].map(function (f) {
4141
return path.join(compilerDirectory, f);
@@ -134,7 +134,7 @@ var useDebugMode = false;
134134
function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOutFile) {
135135
file(outFile, prereqs, function() {
136136
var dir = useBuiltCompiler ? builtLocalDirectory : LKGDirectory;
137-
var compilerFilename = "tc.js";
137+
var compilerFilename = "tsc.js";
138138
var options = "-removeComments --module commonjs -noImplicitAny "; //" -propagateEnumConstants "
139139

140140
var cmd = (process.env.host || process.env.TYPESCRIPT_HOST || "node") + " " + dir + compilerFilename + " " + options + " ";
@@ -230,15 +230,15 @@ task("generate-diagnostics", [diagnosticInfoMapTs])
230230

231231

232232
// 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);
235235

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);
238238

239239
// Local target to build the compiler and services
240240
desc("Builds the full compiler and services");
241-
task("local", ["generate-diagnostics", "lib", tcFile, tcServicesFile]);
241+
task("local", ["generate-diagnostics", "lib", tscFile, servicesFile]);
242242

243243

244244
// Local target to build the compiler and services
@@ -261,7 +261,7 @@ task("clean", function() {
261261
// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
262262
desc("Makes a new LKG out of the built js files");
263263
task("LKG", libraryTargets, function() {
264-
var expectedFiles = [tcFile, tcServicesFile].concat(libraryTargets);
264+
var expectedFiles = [tscFile, servicesFile].concat(libraryTargets);
265265
var missingFiles = expectedFiles.filter(function (f) {
266266
return !fs.existsSync(f);
267267
});
@@ -285,7 +285,7 @@ directory(builtLocalDirectory);
285285

286286
// Task to build the tests infrastructure using the built compiler
287287
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);
289289

290290
var localBaseline = "tests/baselines/local/";
291291
var refBaseline = "tests/baselines/reference/";
@@ -385,7 +385,7 @@ task("generate-code-coverage", ["tests", builtLocalDirectory], function () {
385385
// Browser tests
386386
var nodeServerOutFile = 'tests/webTestServer.js'
387387
var nodeServerInFile = 'tests/webTestServer.ts'
388-
compileFile(nodeServerOutFile, [nodeServerInFile], [builtLocalDirectory, tcFile], [], true, true);
388+
compileFile(nodeServerOutFile, [nodeServerInFile], [builtLocalDirectory, tscFile], [], true, true);
389389

390390
desc("Runs browserify on run.js to produce a file suitable for running tests in the browser");
391391
task("browserify", ["tests", builtLocalDirectory, nodeServerOutFile], function() {
@@ -460,16 +460,16 @@ task("baseline-accept-rwc", function() {
460460
// Webhost
461461
var webhostPath = "tests/webhost/webtsc.ts";
462462
var webhostJsPath = "tests/webhost/webtsc.js";
463-
compileFile(webhostJsPath, [webhostPath], [tcFile, webhostPath].concat(libraryTargets), [], true);
463+
compileFile(webhostJsPath, [webhostPath], [tscFile, webhostPath].concat(libraryTargets), [], true);
464464

465465
desc("Builds the tsc web host");
466466
task("webhost", [webhostJsPath], function() {
467467
jake.cpR(path.join(builtLocalDirectory, "lib.d.ts"), "tests/webhost/", {silent: true});
468468
});
469469

470470
// 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);
474474
desc("Builds augmented version of the compiler for perf tests");
475-
task("perftc", [perftcJsPath]);
475+
task("perftsc", [perftscJsPath]);

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jake -T # List the above commands.
6363
## Usage
6464

6565
```shell
66-
node built/local/tc.js hello.ts
66+
node built/local/tsc.js hello.ts
6767
```
6868

6969

bin/tc.js renamed to bin/tsc.js

File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"url" : "https://github.com/Microsoft/TypeScript.git"
2626
},
2727
"preferGlobal" : true,
28-
"main" : "./bin/tc.js",
28+
"main" : "./bin/tsc.js",
2929
"bin" : {
3030
"tsc" : "./bin/tsc"
3131
},
File renamed without changes.

tests/perftc.ts renamed to tests/perftsc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference path="perfsys.ts"/>
2-
/// <reference path="..\src\compiler\tc.ts"/>
2+
/// <reference path="..\src\compiler\tsc.ts"/>
33

44
// resolve all files used in this compilation
55
if (perftest.hasLogIOFlag()) {

tests/webhost/webtsc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path='..\..\src\compiler\tc.ts'/>
1+
/// <reference path='..\..\src\compiler\tsc.ts'/>
22

33
module TypeScript.WebTsc {
44

0 commit comments

Comments
 (0)