Skip to content

Make repo root importable as a git dependency - #2

Merged
bigboateng merged 1 commit into
mainfrom
feat/consumable-root
Jun 8, 2026
Merged

Make repo root importable as a git dependency#2
bigboateng merged 1 commit into
mainfrom
feat/consumable-root

Conversation

@bigboateng

Copy link
Copy Markdown
Contributor

Summary

Lets other repos depend on this one via a GitHub URL (no npm publish):

  • Rename the root package to modelgraph (it was a confusing composable-model-graph leftover that collided with the sibling repo).
  • Expose the built core at the repo root via exports/main/module/types pointing at packages/core/dist.
  • Add a prepare script (tsc -b packages/core) so installing this repo as a github: dependency builds packages/core/dist on install.

No source/runtime changes to core; only packaging.

Test plan

  • pnpm install of github:operatorstack/modelgraph#<sha> from a consumer runs prepare and builds packages/core/dist (verified from intelligence-flow).
  • import { createTransform, createModelGraph } from "modelgraph" resolves to the built dist.

Made with Cursor

Name the root package `modelgraph` (was a confusing `composable-model-graph`
leftover that collided with the sibling repo) and expose the built core via
root `exports`/`main`/`types` pointing at `packages/core/dist`. Add a
`prepare` script (`tsc -b packages/core`) so installing this repo as a
GitHub-URL dependency builds core's dist on install without publishing to npm.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bigboateng
bigboateng merged commit 68649ea into main Jun 8, 2026
@bigboateng
bigboateng deleted the feat/consumable-root branch June 8, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant