This document provides instructions for publishing the bootstrap-v4-rtl package to the npm registry.
- You need an npm account. If you don't have one, create it at npmjs.com.
- You need to be logged in to npm on your local machine.
Before publishing, make sure your package is ready:
# Build the distribution files
npm run dist
If you're not already logged in:
npm login
To publish the package to npm:
npm publish
For prerelease versions (like the current 4.6.2-2), you must specify a tag:
npm publish --tag beta
If you want to publish a new version:
# Update version in package.json first
npm version patch|minor|major
npm publish
After publishing, verify that your package is available on npm:
npm view bootstrap-v4-rtl
You can also check the package page at: https://www.npmjs.com/package/bootstrap-v4-rtl
- The
files
field in package.json determines which files are included in the published package. - Make sure the version number in package.json is updated before publishing a new version.
- If you're updating an existing package, make sure to follow semantic versioning principles.