fix(cli): improve lockfile support on cli

This commit is contained in:
Ruben Fiszel
2024-04-30 00:59:12 +02:00
parent 196de08775
commit 05e70a849e
2 changed files with 12 additions and 2 deletions

View File

@@ -1056,7 +1056,8 @@ async function push(opts: GlobalOptions & SyncOptions) {
} else if (change.name === "added") {
if (
change.path.endsWith(".script.json") ||
change.path.endsWith(".script.yaml")
change.path.endsWith(".script.yaml") ||
change.path.endsWith(".lock")
) {
continue;
} else if (
@@ -1089,6 +1090,9 @@ async function push(opts: GlobalOptions & SyncOptions) {
await Deno.writeTextFile(stateTarget, change.content);
}
} else if (change.name === "deleted") {
if (change.name.endsWith(".lock")) {
continue;
}
const typ = getTypeStrFromPath(change.path);
if (typ == "script") {