You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dist/
├── index.js # ES module entry point
├── index.d.ts # TypeScript definitions
├── index.cjs # CommonJS entry point
├── core/ # Core infrastructure
├── categories/ # API category modules
└── types/ # Type definitions
Quality Gates
TypeScript Compilation: No type errors
Linting: ESLint passes with zero warnings
Testing: 85%+ coverage, all tests pass
Format: Prettier code formatting enforced
Release Process
Automated Release Pipeline
# Development workflow
npm run clean # Clean previous builds
npm run typecheck # Validate TypeScript
npm run lint # Code quality checks
npm run test:coverage # Full test suite with coverage
npm run build # Compile TypeScript
npm run format:check # Verify code formatting# Release preparation (automated via prepublishOnly)
npm publish # Triggers full pipeline + publish
Version Management
Patch (0.1.0 → 0.1.1): Bug fixes, documentation
Minor (0.1.0 → 0.2.0): New API categories, backward-compatible features
Major (0.1.0 → 1.0.0): Breaking changes, API redesigns
Release Automation
{
"scripts": {
"prepublishOnly": "npm run clean && npm run build && npm run test:unit && npm run lint",
"release": "release-it",
"release:patch": "release-it patch",
"release:minor": "release-it minor",
"release:major": "release-it major"
}
}
Documentation Strategy
Package Documentation
README.md: Installation, quick start, API overview
API Documentation: Auto-generated with TypeDoc
Examples: Real-world usage patterns
Migration Guides: Version upgrade instructions
TypeScript Integration
Full type definitions exported
IntelliSense support in VS Code
Compile-time type checking
Auto-completion for all API methods
Security & Maintenance
Security Measures
No secrets in package: All examples use placeholder credentials
Dependency scanning: Regular updates for security vulnerabilities
Audit logs: Track all published versions
Maintenance Strategy
Regular updates: Keep dependencies current
API compatibility: Monitor Ozon API changes
Community support: Issue tracking and bug reports
Distribution Channels
NPM Registry
Primary: npm publish to registry.npmjs.org
Scope: @spacechemical organization
Access: Public package (free to install)
GitHub Packages (Optional)
Secondary: Backup distribution channel
Integration: Automatic publishing via GitHub Actions