Skip to content

fix: say what installs @cosyte/fhir instead of claiming it is not on npm - #96

Merged
NSchatz merged 1 commit into
mainfrom
fix/fhir-unavailable-message
Nov 8, 2026
Merged

NSchatz merged 1 commit into
mainfrom
fix/fhir-unavailable-message

Conversation

@NSchatz

@NSchatz NSchatz commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

The CLI_PARSER_UNAVAILABLE message for a missing @cosyte/fhir said the package is not on the npm registry. It has been published since August (0.1.4 is latest), so the message sent users away from an install that works. The convert message made the same claim, and said @cosyte/transform was not installed even when only its @cosyte/fhir peer was missing.

When the code path still fires (measured against the published 0.1.4 in clean directories):

  • default npm install @cosyte/cli and pnpm add @cosyte/cli: fhir arrives as transform's peer, and FHIR parse exits 0;
  • npm install --legacy-peer-deps: transform is installed, fhir is not, and FHIR parse and convert exit 69 with the false message;
  • a removed copy of either package.

Installing @cosyte/fhir next to @cosyte/cli fixes it (verified, including npx --package @cosyte/cli --package @cosyte/fhir cosyte ...).

Changes:

  • src/core/parsers.ts: the fhir message now says FHIR support is unavailable in this install, that fhir arrives as transform's peer, which an install without peer dependencies leaves out, and to install @cosyte/fhir alongside @cosyte/cli.
  • src/commands/convert.ts: the transform message names both packages, does not claim which is missing, and says to install both alongside @cosyte/cli.
  • test/absent-sibling.test.ts: asserts the new wording, that neither message mentions the registry, and that both end with the install instruction.
  • docs-content/troubleshooting.md: the npx form and --legacy-peer-deps as one install that leaves fhir out.
  • RELEASING.md: dated note that fhir is published and the August record is history.

Code (CLI_PARSER_UNAVAILABLE) and exit code (69) are unchanged; both messages stay value-free (package names only). Patch changeset included.

https://claude.ai/code/session_01MXLcW95gf97vs9RBU1YsXf

@cosyte/fhir is on the npm registry. The FHIR and convert unavailable
messages now say it arrives as the peer of @cosyte/transform, which an
install without peer dependencies leaves out, and to install it
alongside @cosyte/cli. Code and exit 69 unchanged.

Claude-Session: https://claude.ai/code/session_01MXLcW95gf97vs9RBU1YsXf
@NSchatz
NSchatz merged commit f1a3429 into main Nov 8, 2026
13 checks passed
@NSchatz
NSchatz deleted the fix/fhir-unavailable-message branch November 8, 2026 14:30
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