@@ -110,20 +110,18 @@ export async function check(
110110 }
111111 checkInfoMsg ( conf , `Quarto ${ quartoConfig . version ( ) } ` ) ;
112112
113- if ( target === "info" || target === "all" ) {
114- await checkInfo ( conf ) ;
115- }
116- if ( target === "versions" || target === "all" ) {
117- await checkVersions ( conf ) ;
118- }
119- if ( target === "install" || target === "all" ) {
120- await checkInstall ( conf ) ;
121- }
122- if ( target === "jupyter" || target === "all" ) {
123- await checkJupyterInstallation ( conf ) ;
124- }
125- if ( target === "knitr" || target === "all" ) {
126- await checkKnitrInstallation ( conf ) ;
113+ for (
114+ const [ name , checker ] of [
115+ [ "info" , checkInfo ] ,
116+ [ "versions" , checkVersions ] ,
117+ [ "install" , checkInstall ] ,
118+ [ "jupyter" , checkJupyterInstallation ] ,
119+ [ "knitr" , checkKnitrInstallation ] ,
120+ ] as const
121+ ) {
122+ if ( target === name || target === "all" ) {
123+ await checker ( conf ) ;
124+ }
127125 }
128126
129127 if ( conf . jsonResult && conf . output ) {
@@ -255,14 +253,14 @@ async function checkVersions(conf: CheckConfiguration) {
255253 ? [
256254 [ pandocVersion , "3.6.3" , "Pandoc" ] ,
257255 [ sassVersion , "1.87.0" , "Dart Sass" ] ,
258- [ denoVersion , "2.2.10 " , "Deno" ] ,
256+ [ denoVersion , "2.3.1 " , "Deno" ] ,
259257 [ typstVersion , "0.13.0" , "Typst" ] ,
260258 ]
261259 : [
262- [ pandocVersion , ">=2.19.2 " , "Pandoc" ] ,
263- [ sassVersion , ">=1.32.8 " , "Dart Sass" ] ,
264- [ denoVersion , ">=2.2.10 " , "Deno" ] ,
265- [ typstVersion , ">=0.10 .0" , "Typst" ] ,
260+ [ pandocVersion , ">=3.6.3 " , "Pandoc" ] ,
261+ [ sassVersion , ">=1.87.0 " , "Dart Sass" ] ,
262+ [ denoVersion , ">=2.3.1 " , "Deno" ] ,
263+ [ typstVersion , ">=0.13 .0" , "Typst" ] ,
266264 ] ;
267265 const fun = strict ? strictCheckVersion : checkVersion ;
268266 for ( const [ version , constraint , name ] of checkData ) {
0 commit comments