diff --git a/backend/windmill-api/src/scripts.rs b/backend/windmill-api/src/scripts.rs index 2af6b22999..315b41c14f 100644 --- a/backend/windmill-api/src/scripts.rs +++ b/backend/windmill-api/src/scripts.rs @@ -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 diff --git a/cli/script.ts b/cli/script.ts index d115b266cd..ed56eb4bde 100644 --- a/cli/script.ts +++ b/cli/script.ts @@ -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 {