fix(cli): warn to switch to bun in the CLI

This commit is contained in:
Ruben Fiszel
2024-03-09 17:06:14 +01:00
parent 017190be27
commit 8a8fab8b41
+1 -1
View File
@@ -26,7 +26,7 @@ export async function readConfigFile(): Promise<SyncOptions> {
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)'
);