create-shibumi 0.2.1 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-shibumi",
3
- "version": "0.2.1",
3
+ "version": "0.2.5",
4
4
  "description": "Scaffold a Shibumi Stack project: Bun, Hono, Zod, Drizzle, SQLite, Alpine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,6 +17,7 @@
17
17
  "ship:logs": "bun scripts/ship.ts --logs",
18
18
  "ship:env": "bun scripts/ship.ts --env",
19
19
  "shibumi": "bun scripts/shibumi.ts",
20
+ "shi": "bun scripts/shibumi.ts",
20
21
  "db:migrate": "bun scripts/db.ts migrate",
21
22
  "db:backup": "bun scripts/db.ts backup",
22
23
  "db:restore": "bun scripts/db.ts restore",
@@ -84,9 +84,17 @@ describe("routes", () => {
84
84
  probe.get("/__boom", () => {
85
85
  throw new Error("test explosion");
86
86
  });
87
- const res = await probe.fetch(new Request("http://localhost/__boom"));
88
- expect(res.status).toBe(500);
89
- expectSecurityHeaders(res);
87
+ // onError logs the exception before answering; silence it so the
88
+ // deliberate explosion does not read as a failure in test output.
89
+ const errorLog = console.error;
90
+ console.error = () => {};
91
+ try {
92
+ const res = await probe.fetch(new Request("http://localhost/__boom"));
93
+ expect(res.status).toBe(500);
94
+ expectSecurityHeaders(res);
95
+ } finally {
96
+ console.error = errorLog;
97
+ }
90
98
  });
91
99
  });
92
100
 
@@ -16,7 +16,8 @@
16
16
  "ship:status": "bun scripts/ship.ts --status",
17
17
  "ship:logs": "bun scripts/ship.ts --logs",
18
18
  "ship:env": "bun scripts/ship.ts --env",
19
- "shibumi": "bun scripts/shibumi.ts"
19
+ "shibumi": "bun scripts/shibumi.ts",
20
+ "shi": "bun scripts/shibumi.ts"
20
21
  },
21
22
  "dependencies": {
22
23
  "hono": "4.13.3",
@@ -73,9 +73,17 @@ describe("routes", () => {
73
73
  probe.get("/__boom", () => {
74
74
  throw new Error("test explosion");
75
75
  });
76
- const res = await probe.fetch(new Request("http://localhost/__boom"));
77
- expect(res.status).toBe(500);
78
- expectSecurityHeaders(res);
76
+ // onError logs the exception before answering; silence it so the
77
+ // deliberate explosion does not read as a failure in test output.
78
+ const errorLog = console.error;
79
+ console.error = () => {};
80
+ try {
81
+ const res = await probe.fetch(new Request("http://localhost/__boom"));
82
+ expect(res.status).toBe(500);
83
+ expectSecurityHeaders(res);
84
+ } finally {
85
+ console.error = errorLog;
86
+ }
79
87
  });
80
88
  });
81
89