@nmrs-community/esm-form-engine-app
v12.3.4-nmrs.1
Published
NMRS fork of the O3 form-engine wrapper ESM, carrying a patched @openmrs/esm-form-engine-lib (obsGroup-scoped obs hydration)
Keywords
Readme
@nmrs-community/esm-form-engine-app
NMRS fork of the O3 form-engine wrapper ESM (@openmrs/esm-form-engine-app).
Identical to upstream except:
@openmrs/esm-form-engine-libis pinned to an exact version and carries a Yarn patch that scopes obs hydration to the parent obsGroup (seeUPDATING.md).- The package is published under the
@nmrs-communityscope andmoduleNameinsrc/index.tsmatches, so config lookups resolve to this package.
Extension and modal names in src/routes.json are unchanged, so it is a drop-in
replacement: swap @openmrs/esm-form-engine-app for
@nmrs-community/esm-form-engine-app in the distro's spa-build-config.json.
Develop
package.json pins [email protected] via packageManager. If yarn --version does not
report 4.x, either run corepack enable once or prefix every command below with corepack
(e.g. corepack yarn install).
yarn install
yarn verify # tsc + production build
yarn start # openmrs developUpstream's *.test.tsx files depend on the patient-chart monorepo test harness
(tools/, __mocks__/, jest-dom setup) and are excluded from tsc; they are kept
unmodified so upstream merges stay clean, but are not runnable here.
See UPDATING.md for pulling upstream changes and bumping the engine lib.
Background on the defect this fork exists for — root cause, the patch, verification,
publishing and caveats — is in docs/obs-hydration-leak.md.
