Commit ac46203
committed
fix(cli): export package.json for pgai wrapper resolution
The pgai wrapper uses `require.resolve("postgresai/package.json")` to
locate the main CLI package. When the `exports` field was added during
the Bun migration, it restricted imports to only explicitly exported
paths - but `./package.json` wasn't included.
This caused `npx pgai@dev` to fail with "failed to locate postgresai
package" because Node.js enforces exports restrictions.
Add `./package.json` to the exports map to restore wrapper functionality.1 parent b9e4aeb commit ac46203
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments