@roboflow/annotation
v1.0.240
Published
Annotation parsing and conversion for computer vision.
Downloads
45,238
Maintainers
Keywords
Readme
Annotation.js
To run tests, in the tests folder run, for example, npm run test labelmap.test.js
To publish/upload package on npm:
The publish process is automated with a GitHub action:
- Update version in package.json
- Create a GitHub release: a GitHub action will publish the package
To publish a prerelease (for testing before a real release):
Prereleases are published under the next dist-tag so they don't affect npm install @roboflow/annotation (which keeps resolving to latest).
- Bump version with a prerelease suffix, e.g.
1.0.233-rc.0.
npm version prerelease --preid=rc- Create a GitHub release and check "Set as a pre-release". The GitHub action publishes it with
--tag next.
Install the prerelease with:
npm install @roboflow/annotation@next # latest prerelease
npm install @roboflow/[email protected] # pinnedWhen the real release goes out (version without suffix, release not marked as pre-release), it publishes to latest as usual.
The publish workflow will fail if the version in package.json has a prerelease suffix but the GitHub release is not marked as pre-release, to prevent accidentally pushing a draft to latest.
