@microature/publisher-npm-plugin
v0.1.0
Published
NPM publishing plugin for @microature/publisher
Maintainers
Readme
@microature/publisher-npm-plugin
NPM publishing plugin for @microature/publisher.
Installation
npm install @microature/publisher-npm-pluginUsage
import { NpmPublishPlugin } from '@microature/publisher-npm-plugin'
import { Publisher } from '@microature/publisher'
const publisher = new Publisher({
plugins: {
npm: new NpmPublishPlugin()
}
})
// Plugin will be automatically used for npm publishingConfiguration
The plugin accepts the following configuration options:
{
registry?: string // Custom npm registry (default: https://registry.npmjs.org)
token?: string // NPM authentication token
access?: 'public' | 'restricted' // Package access level
}Features
- ✅ Automatic package.json generation
- ✅ Project building before publishing
- ✅ Tarball creation and validation
- ✅ Branch-specific package naming
- ✅ Scoped package support
- ✅ Custom registry support
- ✅ Authentication token support
Branch Strategy
- main branch: Publishes as
package-name@version - other branches: Publishes as
package-name-branch@versionwith branch tag
Requirements
- Node.js >= 18.0.0
- npm CLI installed
- Valid package.json in project root (for existing projects)
License
MIT
