Package containing common types for ONECore
npm i onecore-types
This packages uses Release Please for automatic updates to the Changelog and for bumping version.
To use a locally updated version of this package, the easiest way it to use npm link.
Note: For this to work, this project and the project where it is used need to have the same versions of Node.
- Run
npm link
inside this folder - In other projects using this package, run
npm link onecore-types
- Make sure you run
npm run build
every time you make changes to this package. - When done, unlink in the other projects with
npm unlink --no-save onecore-types
Conventional Commit Messages is what triggers the release action.
The most important prefixes you should have in mind are:
- fix: which represents bug fixes, and correlates to a SemVer patch.
- feat: which represents a new feature, and correlates to a SemVer minor.
- feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.
Read more here.
- Make sure the latest version is built with
npm run build
before pushing. - When Relase Please detects that a new commit containing any of the prefixes listed above, it creates a pull request for updating changelog and bumps version. Once merged the new version is published on npm. Do not change versions in package.json manually.