Skip to content

Document that consumers must install @worldware/msg alongside msg-react #7

Description

@jsahleen

Document that @worldware/msg is a peer dependency of @worldware/msg-react, not a bundled/transitive dependency consumers can rely on alone.

User story

As a msg-react user, I want the README (and any install docs) to say I must install both packages, so I do not hit missing-module errors or assume msg comes for free with msg-react.

What to document

  • @worldware/msg is declared as a peerDependency (and used as a tsup external); apps must install it themselves.

  • Recommended install:

    npm install @worldware/msg @worldware/msg-react
  • Brief rationale: one shared msg instance/types in the app tree; avoiding duplicates.

Suggested places

  • README.md — add an Installation section before Usage (Usage already imports from @worldware/msg but never states the peer install).
  • Optionally mirror a one-liner in project/info.md if that file is meant for consumers/agents.

Out of scope

  • Changing peer/dev dependency ranges.
  • Making @worldware/msg a regular dependency.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions