File tree 1 file changed +9
-0
lines changed
1 file changed +9
-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 = '' ) {
@@ -37,6 +38,7 @@ if (nodeMajorVersion <= 10) {
37
38
'@sentry/gatsby' ,
38
39
'@sentry/serverless' ,
39
40
'@sentry/nextjs' ,
41
+ '@sentry/angular' ,
40
42
] ;
41
43
42
44
// This is a hack, to deal the fact that the browser-based tests fail under Node 8, because of a conflict buried
@@ -46,6 +48,13 @@ if (nodeMajorVersion <= 10) {
46
48
// against a single version of node, but in the short run, this at least allows us to not be blocked by the
47
49
// failures.)
48
50
run ( 'rm -rf packages/tracing/test/browser' ) ;
51
+
52
+ // TODO Pull this out once we switch to sucrase builds
53
+ // change the tsconfig `target` back to es5, so as not to have to fix a compatibility problem that will soon be moot
54
+ const baseTSConfig = 'packages/typescript/tsconfig.json' ;
55
+ fs . writeFileSync ( baseTSConfig , String ( fs . readFileSync ( baseTSConfig ) ) . replace ( '"target": "es6"' , '"target": "es5"' ) ) ;
56
+ run ( `yarn build:dev ${ ignorePackages . map ( dep => `--ignore="${ dep } "` ) . join ( ' ' ) } ` ) ;
57
+ // fs.writeFileSync(baseTSConfig, String(fs.readFileSync(baseTSConfig)).replace('"target": "es5"', '"target": "es6"'));
49
58
}
50
59
// Node 10
51
60
else {
You can’t perform that action at this time.
0 commit comments