Skip to content

Commit 82da429

Browse files
committed
Don't empty dir on fetch
1 parent 7e97688 commit 82da429

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/cli/src/commands.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
type Resolution,
88
} from "@lpm/core";
99
import { NSID } from "@atproto/syntax";
10-
import { emptyDir, ensureFile, exists } from "@std/fs";
10+
import { ensureFile, exists } from "@std/fs";
1111
import { Command } from "@cliffy/command";
1212
import * as inputTypes from "./types.ts";
1313
import * as fmt from "@std/fmt/colors";
@@ -109,8 +109,6 @@ export class FetchCommand implements CommandDescriptor {
109109
(nsid: string) => this.nodeFactory.create(NSID.parse(nsid)),
110110
);
111111

112-
await emptyDir(this.resolutionsDir.getRoot() + "/lexicons");
113-
114112
for await (const resolution of this.registry.resolve(roots)) {
115113
if (!resolution.success) {
116114
console.error("failed to resolve ", resolution.errorCode);

0 commit comments

Comments
 (0)