mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
fix: improve codebase handling by ignoring creating lock and bundle
This commit is contained in:
@@ -573,13 +573,14 @@ async fn create_script_internal<'c>(
|
||||
|| ns.language == ScriptLang::Bunnative
|
||||
|| ns.language == ScriptLang::Deno
|
||||
|| ns.language == ScriptLang::Php)
|
||||
|| ns.codebase.is_some()
|
||||
{
|
||||
Some(String::new())
|
||||
} else {
|
||||
ns.lock
|
||||
.and_then(|e| if e.is_empty() { None } else { Some(e) })
|
||||
};
|
||||
let needs_lock_gen = lock.is_none();
|
||||
let needs_lock_gen = lock.is_none() && codebase.is_none();
|
||||
let envs = ns.envs.as_ref().map(|x| x.as_slice());
|
||||
let envs = if ns.envs.is_none() || ns.envs.as_ref().unwrap().is_empty() {
|
||||
None
|
||||
|
||||
+2
-1
@@ -160,7 +160,7 @@ export async function handleFile(
|
||||
format: "esm",
|
||||
bundle: true,
|
||||
write: false,
|
||||
platform: 'node',
|
||||
platform: "node",
|
||||
});
|
||||
bundleContent = out.outputFiles[0].text;
|
||||
log.info(`Finished building the bundle for ${path}`);
|
||||
@@ -430,6 +430,7 @@ export const exts = [
|
||||
".sql",
|
||||
".gql",
|
||||
".ps1",
|
||||
".php",
|
||||
];
|
||||
|
||||
export function removeExtensionToPath(path: string): string {
|
||||
|
||||
Reference in New Issue
Block a user