* feat: add git sync support for workspace dependencies Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: implement git sync for workspace dependencies Signed-off-by: pyranota <pyra@duck.com> * remove deno.lock Signed-off-by: pyranota <pyra@duck.com> * update ee Signed-off-by: pyranota <pyra@duck.com> * add tests to cli Signed-off-by: pyranota <pyra@duck.com> * sqlx * chore: update ee-repo-ref to 09dfb247f6f59c61b7f2431932c4557fb26c22d8 This commit updates the EE repository reference after PR #446 was merged in windmill-ee-private. Previous ee-repo-ref: 8a8832ae5d7efab85b3a57a740308ececa0e2aac New ee-repo-ref: 09dfb247f6f59c61b7f2431932c4557fb26c22d8 Automated by sync-ee-ref workflow. * fix test --------- Signed-off-by: pyranota <pyra@duck.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Pyra <92104930+pyranota@users.noreply.github.com> Co-authored-by: pyranota <pyra@duck.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
60 lines
1.3 KiB
Nu
60 lines
1.3 KiB
Nu
#!/usr/bin/env nu
|
|
|
|
let cli_cache = "/tmp/windmill/cache_nomount/bun/"
|
|
let bundle_cache = "/tmp/windmill/cache/bun/"
|
|
|
|
# Clean CLI package cache
|
|
def "main clean" [] {
|
|
rm -rf ($cli_cache ++ "windmill-cli@*")
|
|
rm -rf ($cli_cache ++ "windmill-cli/")
|
|
print "Cleaned CLI cache"
|
|
}
|
|
|
|
# Clear bundle cache (forces hub scripts to re-bundle)
|
|
def "main clear-bundles" [] {
|
|
rm -rf ($bundle_cache ++ "*")
|
|
print "Cleared bundle cache"
|
|
}
|
|
|
|
# Patch CLI cache with local build
|
|
def "main patch" [] {
|
|
print "Patching CLI cache..."
|
|
|
|
let versions = (ls $cli_cache | where name =~ "windmill-cli@" | get name)
|
|
|
|
if ($versions | is-empty) {
|
|
print "No CLI versions found in cache"
|
|
return
|
|
}
|
|
|
|
for path in $versions {
|
|
rm -rf ($path ++ "/esm")
|
|
^cp -r npm/esm ($path ++ "/esm")
|
|
^cp npm/package.json ($path ++ "/package.json")
|
|
print $"Patched ($path | path basename)"
|
|
}
|
|
|
|
print "Done!"
|
|
}
|
|
|
|
# Build CLI, patch cache, and clear bundles
|
|
def main [
|
|
--patch(-p) # Only patch existing cache (skip build)
|
|
--clean(-c) # Clean CLI cache first
|
|
] {
|
|
if $clean {
|
|
main clean
|
|
}
|
|
|
|
if $patch {
|
|
main patch
|
|
} else {
|
|
print "Building CLI..."
|
|
bun run build
|
|
main patch
|
|
}
|
|
|
|
# Always clear bundle cache so hub scripts use patched CLI
|
|
main clear-bundles
|
|
}
|