diff --git a/.changeset/cli-pg-migrations-in-npm-tarball.md b/.changeset/cli-pg-migrations-in-npm-tarball.md new file mode 100644 index 0000000000..3507139700 --- /dev/null +++ b/.changeset/cli-pg-migrations-in-npm-tarball.md @@ -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." diff --git a/packages/cli/package.json b/packages/cli/package.json index 5032977bb0..9f4ea172af 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -33,6 +33,7 @@ "dist/**/*.d.ts", "dist/**/*.d.ts.map", "dist/**/*.js.map", + "dist/migrations/**", "dist/client/**", "dist/desktop/**", "dist/pi-claude-cli/**",