Skip to content

Commit acd4914

Browse files
committedFeb 1, 2015
Rename the main node package filename to match the package name
1 parent 7b43672 commit acd4914

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
 

Diff for: ‎Jakefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ var tscFile = path.join(builtLocalDirectory, compilerFilename);
323323
compileFile(tscFile, compilerSources, [builtLocalDirectory, copyright].concat(compilerSources), [copyright], /*useBuiltCompiler:*/ false);
324324

325325
var servicesFile = path.join(builtLocalDirectory, "typescriptServices.js");
326+
var nodePackageFile = path.join(builtLocalDirectory, "typescript.js");
326327
compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].concat(servicesSources),
327328
/*prefixes*/ [copyright],
328329
/*useBuiltCompiler*/ true,
@@ -331,7 +332,10 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
331332
/*outDir*/ undefined,
332333
/*preserveConstEnums*/ true,
333334
/*keepComments*/ false,
334-
/*noResolve*/ false);
335+
/*noResolve*/ false,
336+
/*callback*/ function () {
337+
jake.cpR(servicesFile, nodePackageFile, {silent: true});
338+
});
335339

336340
var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts");
337341
var standaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices.d.ts");
@@ -425,7 +429,7 @@ task("generate-spec", [specMd])
425429
// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
426430
desc("Makes a new LKG out of the built js files");
427431
task("LKG", ["clean", "release", "local"].concat(libraryTargets), function() {
428-
var expectedFiles = [tscFile, servicesFile, nodeDefinitionsFile, standaloneDefinitionsFile, internalNodeDefinitionsFile, internalStandaloneDefinitionsFile].concat(libraryTargets);
432+
var expectedFiles = [tscFile, servicesFile, nodePackageFile, nodeDefinitionsFile, standaloneDefinitionsFile, internalNodeDefinitionsFile, internalStandaloneDefinitionsFile].concat(libraryTargets);
429433
var missingFiles = expectedFiles.filter(function (f) {
430434
return !fs.existsSync(f);
431435
});

Diff for: ‎package.json

+1-1
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/typescriptServices.js",
28+
"main": "./bin/typescript.js",
2929
"bin": {
3030
"tsc": "./bin/tsc"
3131
},

0 commit comments

Comments
 (0)
Please sign in to comment.