File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,12 @@ export const handler = async (event: Event, context: any) => {
45
45
46
46
await Promise . all ( promises ) ;
47
47
48
- try {
49
- console . log ( JSON . stringify ( process . env ) ) ;
50
- const wd = path . join ( rootDir , props . workingDirectory ) ;
51
- execSync ( props . buildCommands . join ( ' && ' ) , {
52
- cwd : wd ,
53
- stdio : 'inherit' ,
54
- } ) ;
55
- } catch ( e ) {
56
- console . log ( e ) ;
57
- }
48
+ console . log ( JSON . stringify ( process . env ) ) ;
49
+ const wd = path . join ( rootDir , props . workingDirectory ) ;
50
+ execSync ( props . buildCommands . join ( ' && ' ) , {
51
+ cwd : wd ,
52
+ stdio : 'inherit' ,
53
+ } ) ;
58
54
59
55
// zip the artifact directory and upload it to a S3 bucket.
60
56
const srcPath = path . join ( rootDir , props . outputSourceDirectory ) ;
@@ -65,7 +61,7 @@ export const handler = async (event: Event, context: any) => {
65
61
await sendStatus ( 'SUCCESS' , event , context ) ;
66
62
} catch ( e ) {
67
63
console . log ( e ) ;
68
- const err = e as Error ;
64
+ const err = e as Error ;
69
65
await sendStatus ( 'FAILED' , event , context , err . message ) ;
70
66
} finally {
71
67
if ( rootDir != '' ) {
You can’t perform that action at this time.
0 commit comments