Skip to content

Commit 33bab3d

Browse files
committed
refactor(scripts): only use Shell in upgrade examples script
1 parent 17a1bd6 commit 33bab3d

File tree

8 files changed

+3
-9
lines changed

8 files changed

+3
-9
lines changed

bun.lockb

14.6 KB
Binary file not shown.

examples/rollup/bun.lockb

0 Bytes
Binary file not shown.

examples/routify/bun.lockb

436 Bytes
Binary file not shown.

examples/routify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"preview": "vite preview"
88
},
99
"devDependencies": {
10-
"@roxi/routify": "^3.0.0-next.232",
10+
"@roxi/routify": "^3.0.0-next.233",
1111
"@sveltejs/vite-plugin-svelte": "latest",
1212
"@tsconfig/svelte": "latest",
1313
"svelte": "latest",

examples/sveltekit/bun.lockb

444 Bytes
Binary file not shown.

examples/vite/bun.lockb

444 Bytes
Binary file not shown.

examples/vite@svelte-5/bun.lockb

444 Bytes
Binary file not shown.

scripts/upgrade-examples.ts

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

3-
const dirs = new Glob("*").scanSync({
4-
cwd: "examples",
5-
onlyFiles: false,
6-
absolute: true,
7-
});
8-
9-
for await (const dir of dirs) {
3+
for await (const dir of $`find examples -maxdepth 1 -type d`.lines()) {
104
await $`cd ${dir} && bun update`;
115
}

0 commit comments

Comments
 (0)