1.0.5 • Published 2 years ago
@rafh/demo-package v1.0.5
Steps to create package
npm login
npm init
(or do it manually)npm publish
(--access=public to make public if package id scoped)
Minimum needed for package.json
{
"name": "@rafh/demo-package",
"version": "1.0.0"
}
The prefix of
@rafh/
within the name property mean the package is scopedVersion uses Semantic Versioning (SemVer)
TLDR
MAJOR.MINOR.PATCH
- MAJOR: contains breaking changes
- MINOR: new functionality but is backwards compatible
- PATCH: backwards compatible bug fixes or UI tweaks
Gotchas
- If you don't increment your package version with each publish you will receive and error.