archive script by path in the CLI

This commit is contained in:
Ruben Fiszel
2025-10-29 21:00:39 +00:00
parent 433fba02c7
commit cc8b6b6b0f

View File

@@ -2120,14 +2120,10 @@ export async function push(
const target = change.path.replaceAll(SEP, "/");
switch (typ) {
case "script": {
const script = await wmill.getScriptByPath({
await wmill.archiveScriptByPath({
workspace: workspaceId,
path: removeExtensionToPath(target),
});
await wmill.archiveScriptByHash({
workspace: workspaceId,
hash: script.hash,
});
break;
}
case "folder":