## `@ledgy/pricing`

This is an npm-publishable Ledgy modules that exposes the `LedgyPricing` component and Ledgy plan features. This module allows us to have the pricing information centralized and reutilize the same component on both app and landing page.

##### How to publish:

1. Go to the `package.json` file and update its version. Please update version number based on severity of changes.

2. The first step is to build the module. `.tsconfig.json` in this module is hidden to avoid clashes with the main `tsconfig` file. To allow the TS compiler to run normally, remove the leading `.` on `.tsconfig.json`.

3. Once that file is no longer hidden, we can run `npm run build` on the CLI. That will compile our project and copy images and `scss` files. The `dist` folder will include our ready-to-go project.

4. Make sure you have the `NPM_PUBLISH_TOKEN` environment variable exported

5. Run `npm publish` to send the project to npm

##### Troubleshooting

When publishing the new package, if an error is thrown (404 - package not found), most likely there is an authentication error.

Might be that the token is not exported correctly or it is expired.
A new token can be generated and use for publishing the package.
