Register the mongodb extension in the repo root package.json manifest #135
Labels
No labels
bug
chore
documentation
enhancement
feature
ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
david/pi-extensions-and-skills#135
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Wire the mongodb extension into the repo's root
package.jsonso pi discoversextensions/mongodb/index.tsand the repo's single install flow hoists themongodbdependency.Background
Depends on: #133
The repo root
package.json(this repo,pi-extensions-and-skills) already registers sibling extensions in api.extensionsarray and hoists their runtime deps into rootdependencies(e.g.pg,dotenv), so one install at the repo root covers all extensions. The mongodb extension must be added the same way. The root manifest uses npm (there is a root lockfile) — check howextensions/postgreswas registered and replicate it exactly, including any lockfile update the repo's install flow produces.The file
extensions/mongodb/index.tsdoes not exist yet (it is created in a later milestone) — the manifest entry is forward-looking and that is expected. Do not create the file here.Implementation Details
package.json:"extensions/mongodb/index.ts"to thepi.extensionsarray.mongodbto rootdependencies(hoisted, alongside the existingpg/dotenventries), with the same version range the package itself uses.Acceptance Criteria
package.jsonpi.extensionsincludes"extensions/mongodb/index.ts".dependenciesincludesmongodb.mongodbpackage.npm ls mongodb(or the repo's equivalent) at the repo root resolves without errors.Test Plan
Also confirm the sibling rows are untouched (postgres/victorialogs still listed in
pi.extensions).pi-loop opened and merged a pull request for this issue: #153