Skip to content

Commit

Permalink
feat(types): add initial read me
Browse files Browse the repository at this point in the history
  • Loading branch information
makelicious committed Nov 21, 2024
1 parent b12d637 commit 2a46d72
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/toolkit/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
# OpenCRVS toolkit

OpenCRVS toolkit for building country configurations.

## File structure

```
src/
events/ # re-exports events 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

1. Update version number in `package.json`
2. `yarn build`
3. `npm publish`

#### Through version control

1. Update version number in `package.json`
2. Create a pull request
3. Once merged, github action will get triggered.

#### Gotchas, good to know

- Package is published and should be used without knowledge of rest of the monorepo
- Package exposes `/events` directory, with types, from `packages/commons` through the library, others are excluded.

0 comments on commit 2a46d72

Please sign in to comment.