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:
7
.changeset/cli-pg-migrations-in-npm-tarball.md
Normal file
7
.changeset/cli-pg-migrations-in-npm-tarball.md
Normal 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."
|
||||||
@@ -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/**",
|
||||||
|
|||||||
Reference in New Issue
Block a user