Skip to content

Commit 8ff1b84

Browse files
committed
chore(scripts): add script to upgrade examples
1 parent 7b244aa commit 8ff1b84

File tree

9 files changed

+13
-1
lines changed

9 files changed

+13
-1
lines changed

examples/rollup/bun.lockb

1 Byte
Binary file not shown.

examples/routify/bun.lockb

633 Bytes
Binary file not shown.

examples/routify/package.json

+1-1
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.230",
10+
"@roxi/routify": "^3.0.0-next.232",
1111
"@sveltejs/vite-plugin-svelte": "latest",
1212
"@tsconfig/svelte": "latest",
1313
"svelte": "latest",

examples/sveltekit/bun.lockb

625 Bytes
Binary file not shown.

examples/vite/bun.lockb

641 Bytes
Binary file not shown.

examples/vite@svelte-5/bun.lockb

633 Bytes
Binary file not shown.

examples/webpack/bun.lockb

1 Byte
Binary file not shown.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"test:unit": "bun test tests/*.ts",
1414
"test:e2e": "bunx playwright test",
1515
"format": "bun --bun prettier --write . --cache",
16+
"upgrade-examples": "bun scripts/upgrade-examples.ts",
1617
"astro": "astro",
1718
"playwright": "playwright"
1819
},

scripts/upgrade-examples.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { $, Glob } from "bun";
2+
3+
const dirs = new Glob("*").scanSync({
4+
cwd: "examples",
5+
onlyFiles: false,
6+
absolute: true,
7+
});
8+
9+
for await (const dir of dirs) {
10+
await $`cd ${dir} && bun update`;
11+
}

0 commit comments

Comments
 (0)