From 8a8fab8b41e8d48ec81f27d65a73fefdb9d62a62 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 9 Mar 2024 17:06:14 +0100 Subject: [PATCH] fix(cli): warn to switch to bun in the CLI --- cli/conf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/conf.ts b/cli/conf.ts index 89f88cbbb2..420030262e 100644 --- a/cli/conf.ts +++ b/cli/conf.ts @@ -26,7 +26,7 @@ export async function readConfigFile(): Promise { const conf = yamlParse( await Deno.readTextFile("wmill.yaml") ) as SyncOptions; - if (conf.defaultTs) { + if (conf?.defaultTs == undefined) { log.warning( 'No defaultTs defined in your wmill.yaml, using deno as default typescript language. Set defaultTs in wmill.yaml to "bun" to switch (https://www.windmill.dev/docs/advanced/cli/sync#wmillyaml)' );