File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { spawnSync } from 'child_process' ;
2
+ import * as fs from 'fs' ;
2
3
import { join } from 'path' ;
3
4
4
5
function run ( cmd : string , cwd : string = '' ) {
@@ -46,6 +47,11 @@ if (nodeMajorVersion <= 10) {
46
47
// against a single version of node, but in the short run, this at least allows us to not be blocked by the
47
48
// failures.)
48
49
run ( 'rm -rf packages/tracing/test/browser' ) ;
50
+
51
+ // TODO Pull this out once we switch to sucrase builds
52
+ // change the tsconfig `target` back to es5, so as not to have to fix a compatibility problem that will soon be moot
53
+ const baseTSConfig = 'packages/typescript/tsconfig.json' ;
54
+ fs . writeFileSync ( baseTSConfig , String ( fs . readFileSync ( baseTSConfig ) ) . replace ( '"target": "es6"' , '"target": "es5"' ) ) ;
49
55
}
50
56
// Node 10
51
57
else {
You can’t perform that action at this time.
0 commit comments