packages/plugin-api/PUBLISHING.md
This package provides TypeScript definitions for Super Productivity plugin development. It's published to npm as @super-productivity/plugin-api.
Update the version in package.json:
cd packages/plugin-api
npm version patch # or minor/major
npm run build
npm pack --dry-run
For stable releases:
npm publish --access public
For beta releases:
npm publish --tag beta --access public
When updating the plugin API types, you need to:
npm run buildThe main project should import types from this package:
// Instead of local imports:
// import { PluginManifest } from './plugin-api.model';
// Use the npm package:
import type { PluginManifest } from '@super-productivity/plugin-api';
packages/plugin-api/
├── src/
│ ├── index.ts # Main export file
│ └── types.ts # All type definitions
├── dist/ # Built output (generated)
├── package.json # Package configuration
├── tsconfig.json # TypeScript configuration
├── README.md # User documentation
├── PUBLISHING.md # This file
└── .npmignore # Files to exclude from npm
1.0.0 - Initial release with core plugin API types