From 57c23bfaaf1255f8ce38d56bf3e4d632df44b09d Mon Sep 17 00:00:00 2001 From: Ben Vinegar Date: Fri, 26 Jun 2026 10:07:42 -0400 Subject: [PATCH] chore(changeset): give sqlite-mkdir-parent a real patch entry --- .changeset/sqlite-mkdir-parent.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.changeset/sqlite-mkdir-parent.md b/.changeset/sqlite-mkdir-parent.md index a845151..c76f2bb 100644 --- a/.changeset/sqlite-mkdir-parent.md +++ b/.changeset/sqlite-mkdir-parent.md @@ -1,2 +1,5 @@ --- +"sideshow": patch --- + +Fix first-run crash when the SQLite db path's parent directory does not exist. `node:sqlite` does not create missing parent directories, so the default `/data/sideshow.db` path (no `data/` shipped in the package) failed with `ERR_SQLITE_ERROR: unable to open database file` on a fresh `npx sideshow serve`. `createSqliteStorage` now `mkdirSync(dirname(path), { recursive: true })` before opening, guarded by the existing `:memory:` check so the in-memory contract suite is untouched. A user-supplied `SIDESHOW_DB` pointing into a not-yet-created directory now works too.