@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.json
file in this module and update its version.- Please increment the major version number
{n+1}.0.0
only 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_TOKEN
environment variable exported -
The next step is to build the module.
.tsconfig.json
in this module is hidden to avoid clashes with the maintsconfig
file. 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 build
on the CLI. That will compile our project and copy images andscss
files. Thedist
folder will include our ready-to-go project. -
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.