Skip to content

Commit 7b3a05b

Browse files
committed
fix(sync): do not read skills directory
1 parent 00c22e5 commit 7b3a05b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/sync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Dirent } from 'node:fs';
1+
import { existsSync, type Dirent } from 'node:fs';
22
import { mkdir, readdir, readFile, readlink, rm, symlink, writeFile } from 'node:fs/promises';
33
import { isAbsolute, relative, resolve } from 'node:path';
44
import { cwd, platform } from 'node:process';
@@ -20,7 +20,7 @@ export async function sync(_ctx: CommandContext): Promise<void> {
2020
}
2121

2222
const source = new URL('node_modules/@bomb.sh/tools/skills/', root);
23-
if (!(await safeRead(source))) {
23+
if (!existsSync(source)) {
2424
console.error('@bomb.sh/tools is not installed. Run `pnpm add -D @bomb.sh/tools` first.');
2525
return;
2626
}

0 commit comments

Comments
 (0)