fix(cli): ship PostgreSQL migrations in the published npm package

The files globs (dist/**/*.js, *.d.ts, maps, named dirs) matched no .sql
file, so npm pack stripped dist/migrations from every published tarball.
npm-installed CLIs crashed schema init (ENOENT dist/migrations/
0000_initial.sql) and the dashboard supervisor crash-looped on boot.
Add dist/migrations/** to files; npm pack --dry-run now lists all 21
migration files. Sibling of the desktop staging fix 6e5bb5d3d.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-07-17 18:21:02 -07:00
parent eccb115c7e
commit 4970465364
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
---
"@runfusion/fusion": patch
---
summary: Fix npm-installed CLI crashing at startup because PostgreSQL migrations were missing from the published package.
category: fix
dev: "tsup stages packages/core/src/postgres/migrations into dist/migrations, but the package files globs (dist/**/*.js, *.d.ts, maps, named dirs) matched no .sql file, so npm pack stripped every migration from the tarball. Installed CLIs failed schema init with ENOENT dist/migrations/0000_initial.sql and the dashboard supervisor crash-looped. Added dist/migrations/** to files; npm pack --dry-run now lists all 21 migration files. Sibling of the desktop staging fix 6e5bb5d3d."

View File

@@ -33,6 +33,7 @@
"dist/**/*.d.ts", "dist/**/*.d.ts",
"dist/**/*.d.ts.map", "dist/**/*.d.ts.map",
"dist/**/*.js.map", "dist/**/*.js.map",
"dist/migrations/**",
"dist/client/**", "dist/client/**",
"dist/desktop/**", "dist/desktop/**",
"dist/pi-claude-cli/**", "dist/pi-claude-cli/**",