@@ -3,6 +3,7 @@ import { fs } from 'zx';
33
44const { mkdir, writeJson } = fs ;
55const TMP_DIR = './tmp/' ;
6+ const ALL_TESTS = process . env . ALL_TYPE_DEFINITIONS_TESTS === '1' ;
67
78const targets = [
89 'esnext' ,
@@ -117,19 +118,17 @@ await $`npx -p typescript@5.9 tsc -p tsconfig.templates.import.json`;
117118await $ `npx -p typescript@5.9 tsc -p tsconfig.entries.json` ;
118119await $ `npx -p typescript@5.9 -p @types/node@24 tsc -p tsconfig.templates.require.json` ;
119120
120- // await $`npx -p typescript@5.9 tsc -p pure/tsconfig.json --target es6 --lib es6`;
121- // await $`npx -p typescript@5.9 tsc -p global/tsconfig.json --target esnext --lib esnext,dom`;
122-
123- const numCPUs = os . cpus ( ) . length ;
124- await prepareEnvironment ( envs , types ) ;
125- await runLimited ( taskConfigs , Math . max ( numCPUs - 1 , 1 ) ) ;
126- await clearTmpDir ( ) ;
127- echo ( `Tested: ${ chalk . green ( tested ) } , Failed: ${ chalk . red ( failed ) } ` ) ;
128-
129- // await $`tsc -p proposals/global/tsconfig.esnext.json`;
130- // await $`tsc -p proposals/global/tsconfig.es2023.json`;
131- // await $`tsc -p proposals/global/tsconfig.es6.json`;
132- //
133- // await $`tsc -p proposals/pure/tsconfig.esnext.json`;
134- // await $`tsc -p proposals/pure/tsconfig.es2023.json`;
135- // await $`tsc -p proposals/pure/tsconfig.es6.node.json`;
121+ if ( ! ALL_TESTS ) {
122+ await $ `npx -p typescript@5.9 tsc -p pure/tsconfig.json --target es6 --lib es6` ;
123+ await $ `npx -p typescript@5.9 tsc -p pure/tsconfig.json --target es2023 --lib es2023` ;
124+ await $ `npx -p typescript@5.9 tsc -p pure/tsconfig.json --target esnext --lib esnext` ;
125+ await $ `npx -p typescript@5.9 tsc -p global/tsconfig.json --target es6 --lib es6,dom` ;
126+ await $ `npx -p typescript@5.9 tsc -p global/tsconfig.json --target es2023 --lib es2023,dom` ;
127+ await $ `npx -p typescript@5.9 tsc -p global/tsconfig.json --target esnext --lib esnext,dom` ;
128+ } else {
129+ const numCPUs = os . cpus ( ) . length ;
130+ await prepareEnvironment ( envs , types ) ;
131+ await runLimited ( taskConfigs , Math . max ( numCPUs - 1 , 1 ) ) ;
132+ await clearTmpDir ( ) ;
133+ echo ( `Tested: ${ chalk . green ( tested ) } , Failed: ${ chalk . red ( failed ) } ` ) ;
134+ }
0 commit comments