File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ data-url.workspace = true
82
82
dissimilar = " =1.0.4"
83
83
dotenvy = " 0.15.7"
84
84
dprint-plugin-json = " =0.19.1"
85
+ dprint-plugin-jupyter = " =0.1.1"
85
86
dprint-plugin-markdown = " =0.16.3"
86
87
dprint-plugin-typescript = " =0.88.5"
87
- dprint-plugin-jupyter = " =0.1.1"
88
88
encoding_rs.workspace = true
89
89
env_logger = " =0.10.0"
90
90
fancy-regex = " =0.10.0"
Original file line number Diff line number Diff line change @@ -14,9 +14,17 @@ const cmd = new Deno.Command("deno", {
14
14
"--config=" + configFile ,
15
15
] ,
16
16
cwd : ROOT_PATH ,
17
- stdout : "inherit " ,
17
+ stdout : "piped " ,
18
18
stderr : "inherit" ,
19
19
} ) ;
20
20
21
- const { code } = await cmd . output ( ) ;
22
- Deno . exit ( code ) ;
21
+ const { code, stdout } = await cmd . output ( ) ;
22
+ // todo(dsherret): temporary until https://github.com/denoland/deno/pull/21359 gets released.
23
+ // Once it's released, just have stdout be inherited above and do `Deno.exit(code)` here.
24
+ const stdoutText = new TextDecoder ( ) . decode ( stdout ) ;
25
+ console . log ( stdoutText ) ;
26
+ if ( stdoutText . length > 0 ) {
27
+ Deno . exit ( 20 ) ;
28
+ } else {
29
+ Deno . exit ( code ) ;
30
+ }
You can’t perform that action at this time.
0 commit comments