@@ -110,20 +110,18 @@ export async function check(
110
110
}
111
111
checkInfoMsg ( conf , `Quarto ${ quartoConfig . version ( ) } ` ) ;
112
112
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
+ }
127
125
}
128
126
129
127
if ( conf . jsonResult && conf . output ) {
@@ -255,14 +253,14 @@ async function checkVersions(conf: CheckConfiguration) {
255
253
? [
256
254
[ pandocVersion , "3.6.3" , "Pandoc" ] ,
257
255
[ sassVersion , "1.87.0" , "Dart Sass" ] ,
258
- [ denoVersion , "2.2.10 " , "Deno" ] ,
256
+ [ denoVersion , "2.3.1 " , "Deno" ] ,
259
257
[ typstVersion , "0.13.0" , "Typst" ] ,
260
258
]
261
259
: [
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" ] ,
266
264
] ;
267
265
const fun = strict ? strictCheckVersion : checkVersion ;
268
266
for ( const [ version , constraint , name ] of checkData ) {
0 commit comments