From f3247a2396afddde9ce4a1bc1554dfc9d2f808da Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 30 Apr 2024 01:35:05 +0200 Subject: [PATCH] fix(cli): skip deleting script when lockfile delete --- cli/sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/sync.ts b/cli/sync.ts index 7950921ef1..08f72f283d 100644 --- a/cli/sync.ts +++ b/cli/sync.ts @@ -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);