@@ -6,7 +6,6 @@ import del from "del";
6
6
import esbuild from "esbuild" ;
7
7
import { EventEmitter } from "events" ;
8
8
import fs from "fs" ;
9
- import fsExtra from "fs-extra" ;
10
9
import _glob from "glob" ;
11
10
import { task } from "hereby" ;
12
11
import path from "path" ;
@@ -16,7 +15,7 @@ import { localizationDirectories } from "./scripts/build/localization.mjs";
16
15
import cmdLineOptions from "./scripts/build/options.mjs" ;
17
16
import { buildProject , cleanProject , watchProject } from "./scripts/build/projects.mjs" ;
18
17
import { localBaseline , localRwcBaseline , refBaseline , refRwcBaseline , runConsoleTests } from "./scripts/build/tests.mjs" ;
19
- import { Debouncer , Deferred , exec , getDiffTool , getDirSize , memoize , needsUpdate , readJson } from "./scripts/build/utils.mjs" ;
18
+ import { Debouncer , Deferred , exec , getDiffTool , memoize , needsUpdate , readJson } from "./scripts/build/utils.mjs" ;
20
19
21
20
const glob = util . promisify ( _glob ) ;
22
21
@@ -833,12 +832,8 @@ export const produceLKG = task({
833
832
if ( missingFiles . length > 0 ) {
834
833
throw new Error ( "Cannot replace the LKG unless all built targets are present in directory 'built/local/'. The following files are missing:\n" + missingFiles . join ( "\n" ) ) ;
835
834
}
836
- const sizeBefore = getDirSize ( "lib" ) ;
835
+
837
836
await exec ( process . execPath , [ "scripts/produceLKG.mjs" ] ) ;
838
- const sizeAfter = getDirSize ( "lib" ) ;
839
- if ( sizeAfter > ( sizeBefore * 1.10 ) ) {
840
- throw new Error ( "The lib folder increased by 10% or more. This likely indicates a bug." ) ;
841
- }
842
837
}
843
838
} ) ;
844
839
@@ -884,14 +879,3 @@ export const help = task({
884
879
hiddenFromTaskList : true ,
885
880
run : ( ) => exec ( "hereby" , [ "--tasks" ] , { hidePrompt : true } ) ,
886
881
} ) ;
887
-
888
- export const bumpLkgToNightly = task ( {
889
- name : "bump-lkg-to-nightly" ,
890
- description : "Bumps typescript in package.json to the latest nightly and copies it to LKG." ,
891
- run : async ( ) => {
892
- await exec ( "npm" , [ "install" , "--save-dev" , "--save-exact" , "typescript@next" ] ) ;
893
- await fs . promises . rm ( "lib" , { recursive : true , force : true } ) ;
894
- await fsExtra . copy ( "node_modules/typescript/lib" , "lib" ) ;
895
- await fs . promises . writeFile ( "lib/.gitattributes" , "* text eol=lf" ) ;
896
- }
897
- } ) ;
0 commit comments