@revisiononline/contracts
v1.0.366
Published
This package contains shared contracts (interfaces, enums, DTOs) used across the Revision Online platform.
Readme
@revisiononline/contracts
This package contains shared contracts (interfaces, enums, DTOs) used across the Revision Online platform.
Manual Publishing for Developers
Note: The CI/CD pipeline is the official method for publishing this package. The manual publishing method described below is provided as a convenience for developers during development and testing.
If you need to quickly publish changes without waiting for the CI/CD pipeline, you can use the manual publishing tool.
Prerequisites
- Make sure you have npm access to the
@revisiononlineorganization - Log in to npm using
npm login
Manual Publishing Steps
- Make your changes to the contracts
- Run the manual publish script:
# Run the script directly
./manual-publish.sh
# or use the npm script
npm run manual-publishThe script will:
- Check if you're logged in to npm
- Fetch the latest version from npm registry (just like the pipeline does)
- Calculate the next patch version
- Create a temporary copy of your code with the updated version
- Build the package in the temporary directory
- Publish to npm
- Clean up the temporary directory
Note: This script does not modify your local package.json file. The version in your local package.json remains unchanged, while the correct incremented version is published to npm.
How It Works
The script:
- Creates a temporary directory
- Copies all your files there
- Updates only the temporary package.json with the correct version
- Builds and publishes from that directory
- Cleans up afterward
This approach ensures your local development files remain unchanged while still publishing with the correct version number.
After Publishing
After publishing, you can update the dependency in your projects:
npm install @revisiononline/contracts@latest