Skip to content

Commit 18d0222

Browse files
committed
fix(ci): npx --package=@fhir-dsl/cli — bin name (fhir-gen) doesn't match package
1 parent 33878cf commit 18d0222

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
run: pnpm build
5050

5151
- name: Generate FHIR types for demo
52-
# Use npx so the CLI binary resolves cleanly — pnpm install doesn't
53-
# always wire the workspace bin symlink when @fhir-dsl/cli's dist/
54-
# is built after install, and npx falls back to the npm registry.
52+
# npx needs --package because @fhir-dsl/cli's bin is named `fhir-gen`,
53+
# not `cli` — npx can't auto-resolve. Explicit form fetches the package
54+
# from npm and runs the right binary.
5555
working-directory: apps/his-demo
56-
run: npx -y @fhir-dsl/cli generate --version r4 --validator native --expand-valuesets --resolve-codesystems --cache ./.fhir-cache --out ./src/fhir/r4
56+
run: npx -y --package=@fhir-dsl/cli fhir-gen generate --version r4 --validator native --expand-valuesets --resolve-codesystems --cache ./.fhir-cache --out ./src/fhir/r4
5757

5858
- name: Build demo (static SPA)
5959
working-directory: apps/his-demo

0 commit comments

Comments
 (0)