We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b244aa commit a3544f9Copy full SHA for a3544f9
package.json
@@ -13,6 +13,7 @@
13
"test:unit": "bun test tests/*.ts",
14
"test:e2e": "bunx playwright test",
15
"format": "bun --bun prettier --write . --cache",
16
+ "upgrade-examples": "bun scripts/upgrade-examples.ts",
17
"astro": "astro",
18
"playwright": "playwright"
19
},
scripts/upgrade-examples.ts
@@ -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 install`;
11
+}
0 commit comments