@@ -11,12 +11,6 @@ var rp = function (relPath) {
11
11
var buildPath = path . join ( __dirname , '_build' ) ;
12
12
var testPath = path . join ( __dirname , '_test' ) ;
13
13
14
- if ( process . env [ 'TF_BUILD' ] ) {
15
- // the CI controls the version of node, so it runs using "node make.js test" instead of "npm test"
16
- // update the PATH when running during CI
17
- buildutils . addPath ( path . join ( __dirname , 'node_modules' , '.bin' ) ) ;
18
- }
19
-
20
14
target . clean = function ( ) {
21
15
rm ( '-Rf' , buildPath ) ;
22
16
rm ( '-Rf' , testPath ) ;
@@ -26,7 +20,8 @@ target.build = function() {
26
20
target . clean ( ) ;
27
21
target . loc ( ) ;
28
22
29
- run ( 'tsc --outDir ' + buildPath ) ;
23
+ run ( 'npx tsc -v' ) ;
24
+ run ( 'npx tsc --outDir ' + buildPath ) ;
30
25
cp ( rp ( 'package.json' ) , buildPath ) ;
31
26
cp ( rp ( 'package-lock.json' ) , buildPath ) ;
32
27
cp ( rp ( 'README.md' ) , buildPath ) ;
@@ -71,9 +66,11 @@ target.loc = function() {
71
66
process . on ( 'uncaughtException' , err => {
72
67
console . error ( `Uncaught exception: ${ err . message } ` ) ;
73
68
console . debug ( err . stack ) ;
69
+ exit ( 1 ) ;
74
70
} ) ;
75
71
76
72
process . on ( 'unhandledRejection' , err => {
77
73
console . error ( `Unhandled rejection: ${ err . message } ` ) ;
78
74
console . debug ( err . stack ) ;
75
+ exit ( 1 ) ;
79
76
} ) ;
0 commit comments