@@ -323,6 +323,7 @@ var tscFile = path.join(builtLocalDirectory, compilerFilename);
323
323
compileFile ( tscFile , compilerSources , [ builtLocalDirectory , copyright ] . concat ( compilerSources ) , [ copyright ] , /*useBuiltCompiler:*/ false ) ;
324
324
325
325
var servicesFile = path . join ( builtLocalDirectory , "typescriptServices.js" ) ;
326
+ var nodePackageFile = path . join ( builtLocalDirectory , "typescript.js" ) ;
326
327
compileFile ( servicesFile , servicesSources , [ builtLocalDirectory , copyright ] . concat ( servicesSources ) ,
327
328
/*prefixes*/ [ copyright ] ,
328
329
/*useBuiltCompiler*/ true ,
@@ -331,7 +332,10 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
331
332
/*outDir*/ undefined ,
332
333
/*preserveConstEnums*/ true ,
333
334
/*keepComments*/ false ,
334
- /*noResolve*/ false ) ;
335
+ /*noResolve*/ false ,
336
+ /*callback*/ function ( ) {
337
+ jake . cpR ( servicesFile , nodePackageFile , { silent : true } ) ;
338
+ } ) ;
335
339
336
340
var nodeDefinitionsFile = path . join ( builtLocalDirectory , "typescript.d.ts" ) ;
337
341
var standaloneDefinitionsFile = path . join ( builtLocalDirectory , "typescriptServices.d.ts" ) ;
@@ -425,7 +429,7 @@ task("generate-spec", [specMd])
425
429
// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
426
430
desc ( "Makes a new LKG out of the built js files" ) ;
427
431
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 ) ;
429
433
var missingFiles = expectedFiles . filter ( function ( f ) {
430
434
return ! fs . existsSync ( f ) ;
431
435
} ) ;
0 commit comments