@opencrvs/toolkit
v0.0.8-scopes
Published
OpenCRVS toolkit for building country configurations
Downloads
818
Readme
OpenCRVS toolkit
OpenCRVS toolkit for building country configurations.
File structure
src/
events/ # re-exports events module from commons package
scopes/ # re-exports scopes module from commons package
lib.ts # standard library. currently empty
Getting started
Development using yarn link
# tsconfig.json references commons. when `tsc --build` is run, both are built.
> yarn build
# If you miss this part you might face issues with types.
> cd dist
> yarn link
Releasing and buiding
While developing
- Update version number in
package.json
yarn build
npm publish
Through version control
- Update version number in
package.json
- Create a pull request
- Once merged, github action will get triggered.
Gotchas, good to know
- All dependencies of the functions and moduless used from
packages/commons
must be also defined in the package.json of the toolkit. Otherwise someone installing the package will get errors. - Package is published and should be used without knowledge of rest of the monorepo
- Package exposes
/events, /scopes
directory, with types, frompackages/commons
through the library, others are excluded.