Skip to content

Commit 292a33f

Browse files
committed
refactor(scripts): specify mindepth [ci skip]
1 parent b6b3d06 commit 292a33f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/upgrade-examples.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { $ } from "bun";
22

3-
for await (const dir of $`find examples -maxdepth 1 -type d`.lines()) {
4-
await $`cd ${dir} && bun update`;
3+
for await (const dir of $`find examples -maxdepth 1 -mindepth 1 -type d`.lines()) {
4+
if (dir) await $`cd ${dir} && bun update`;
55
}

0 commit comments

Comments
 (0)