@@ -194,7 +194,7 @@ var compilerFilename = "tsc.js";
194194 * @param keepComments: false to compile using --removeComments
195195 * @param callback: a function to execute after the compilation process ends
196196 */
197- function compileFile ( outFile , sources , prereqs , prefixes , useBuiltCompiler , noOutFile , generateDeclarations , outDir , preserveConstEnums , keepComments , noResolve , callback ) {
197+ function compileFile ( outFile , sources , prereqs , prefixes , useBuiltCompiler , noOutFile , generateDeclarations , outDir , preserveConstEnums , keepComments , noResolve , stripInternal , callback ) {
198198 file ( outFile , prereqs , function ( ) {
199199 var dir = useBuiltCompiler ? builtLocalDirectory : LKGDirectory ;
200200 var options = "--module commonjs -noImplicitAny" ;
@@ -227,6 +227,10 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOu
227227 options += " -sourcemap -mapRoot file:///" + path . resolve ( path . dirname ( outFile ) ) ;
228228 }
229229
230+ if ( stripInternal ) {
231+ options += " --stripInternal"
232+ }
233+
230234 var cmd = host + " " + dir + compilerFilename + " " + options + " " ;
231235 cmd = cmd + sources . join ( " " ) ;
232236 console . log ( cmd + "\n" ) ;
@@ -331,7 +335,8 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
331335 /*outDir*/ undefined ,
332336 /*preserveConstEnums*/ true ,
333337 /*keepComments*/ false ,
334- /*noResolve*/ false ) ;
338+ /*noResolve*/ false ,
339+ /*stripInternal*/ false ) ;
335340
336341var nodeDefinitionsFile = path . join ( builtLocalDirectory , "typescript.d.ts" ) ;
337342var standaloneDefinitionsFile = path . join ( builtLocalDirectory , "typescriptServices.d.ts" ) ;
@@ -347,6 +352,7 @@ compileFile(nodeDefinitionsFile, servicesSources,[builtLocalDirectory, copyright
347352 /*preserveConstEnums*/ true ,
348353 /*keepComments*/ true ,
349354 /*noResolve*/ true ,
355+ /*stripInternal*/ true ,
350356 /*callback*/ function ( ) {
351357 function makeDefinitionFiles ( definitionsRoots , standaloneDefinitionsFile , nodeDefinitionsFile ) {
352358 // Create the standalone definition file
0 commit comments