fix(cli): skip deleting script when lockfile delete

This commit is contained in:
Ruben Fiszel
2024-04-30 01:35:05 +02:00
parent d0e7438c26
commit f3247a2396
+1 -1
View File
@@ -1090,7 +1090,7 @@ async function push(opts: GlobalOptions & SyncOptions) {
await Deno.writeTextFile(stateTarget, change.content);
}
} else if (change.name === "deleted") {
if (change.name.endsWith(".lock")) {
if (change.path.endsWith(".lock")) {
continue;
}
const typ = getTypeStrFromPath(change.path);