nits
This commit is contained in:
@@ -36,13 +36,13 @@ export async function readConfigFile(): Promise<SyncOptions> {
|
||||
) as SyncOptions;
|
||||
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)'
|
||||
"No defaultTs defined in your wmill.yaml, using deno as default typescript language. Use 'wmill init' to bootstrap it."
|
||||
);
|
||||
}
|
||||
return typeof conf == "object" ? conf : ({} as SyncOptions);
|
||||
} catch (e) {
|
||||
log.warning(
|
||||
'No wmill.yaml found, using deno as default typescript language. Create a wmill.yaml with a defaultTs set to "bun" to switch (https://www.windmill.dev/docs/advanced/cli/sync#wmillyaml)'
|
||||
"No wmill.yaml found, using deno as default typescript language. Use 'wmill init' to bootstrap it."
|
||||
);
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -107,13 +107,13 @@ async function addCodebaseDigestIfRelevant(
|
||||
if (!isTs) {
|
||||
return content;
|
||||
}
|
||||
log.info(`isScript: ${isScript}, isTs: ${isTs}; ${path}`);
|
||||
if (isTs) {
|
||||
const c = findCodebase(path, codebases);
|
||||
if (c) {
|
||||
const parsed: any = yamlParse(content);
|
||||
if (parsed && typeof parsed == "object") {
|
||||
parsed["codebase"] = c.digest;
|
||||
parsed["lock"] = undefined;
|
||||
return yamlStringify(parsed, yamlOptions);
|
||||
} else {
|
||||
throw Error(
|
||||
|
||||
Reference in New Issue
Block a user