@@ -161,8 +161,7 @@ task(TaskNames.lkg, [
161
161
exec ( `${ host } ${ Paths . scripts . produceLKG } ` , ( ) => {
162
162
const sizeAfter = getDirSize ( Paths . lkg ) ;
163
163
if ( sizeAfter > ( sizeBefore * 1.10 ) ) {
164
- // throw new Error("The lib folder increased by 10% or more. This likely indicates a bug.");
165
- console . log ( "Seems too big" ) ;
164
+ throw new Error ( "The lib folder increased by 10% or more. This likely indicates a bug." ) ;
166
165
}
167
166
168
167
complete ( ) ;
@@ -362,20 +361,6 @@ file(Paths.servicesDefinitionFile, [TaskNames.coreBuild], function() {
362
361
}
363
362
} , { async : true } ) ;
364
363
365
- /*
366
- file(Paths.tsserverLibraryDefinitionFile, [TaskNames.coreBuild, Paths.copyright, ...libraryTargets], function () {
367
- const content = fs.readFileSync(Paths.tsserverLibraryDefinitionFile, { encoding: 'utf-8' });
368
- const newContent =
369
- removeConstModifierFromEnumDeclarations(content) +
370
- `\nexport = ts` +
371
- `\nexport as namespace ts;`;
372
-
373
- fs.writeFileSync(Paths.tsserverLibraryDefinitionFile, newContent, { encoding: 'utf-8' });
374
- });
375
- */
376
-
377
-
378
-
379
364
function getLibraryTargets ( ) {
380
365
/** @type {{ libs: string[], paths?: Record<string, string>, sources?: Record<string, string[]> } } */
381
366
const libraries = readJson ( "./src/lib/libs.json" ) ;
@@ -540,7 +525,6 @@ function cleanTestDirs() {
540
525
}
541
526
542
527
jake . mkdirP ( Paths . baselines . local ) ;
543
- jake . mkdirP ( Paths . baselines . localRwc ) ;
544
528
jake . mkdirP ( Paths . baselines . localTest262 ) ;
545
529
}
546
530
@@ -627,6 +611,7 @@ function acceptBaseline(sourceFolder, targetFolder) {
627
611
console . log ( 'Accept baselines from ' + sourceFolder + ' to ' + targetFolder ) ;
628
612
var deleteEnding = '.delete' ;
629
613
614
+ jake . mkdirP ( targetFolder ) ;
630
615
acceptBaselineFolder ( sourceFolder , targetFolder ) ;
631
616
632
617
function acceptBaselineFolder ( sourceFolder , targetFolder ) {
0 commit comments