@ledgy/library-pricing
v4.3.14
Published
Ledgy: logic related to features and company pricing
Readme
@ledgy/library-pricing
This is an npm-publishable Ledgy package 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:
Go to the
package.jsonfile in this module and update its version.- Please increment the major version number
{n+1}.0.0only when there are significant changes to be shipped e.g. major pricing or UI overhaul. If there are minor feature changes or additions, update only the subversion number1.{n+1}.0. For fixes, or small improvements please increment the patch number1.6.{n+1}. - To read more about semantic versioning, please refer to this page in the npm docs.
- Please increment the major version number
Make sure you have the
NPM_PUBLISH_TOKENenvironment variable exportedThe next step is to build the module.
.tsconfig.jsonin this module is hidden to avoid clashes with the maintsconfigfile. To allow the TS compiler to run normally, remove the leading.on.tsconfig.json.Once that file is no longer hidden, make sure that you are in the library folder
packages/library-pricing. Once you are in the library folder, we can runnpm run buildon the CLI. That will compile our project and copy images andscssfiles. Thedistfolder will include our ready-to-go project.Run
npm publishto 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.
