Covers modern npm package authoring: package.json configuration with the exports field, dual ESM/CJS builds, TypeScript type declarations, and secure publishing workflows with provenance.
When to use: Configuring package entry points, setting up conditional exports, building dual-format packages, publishing scoped packages, or troubleshooting module resolution.
When NOT to use: Application-level bundling (Vite/webpack app configs), monorepo workspace orchestration (Turborepo/Nx), private registry setup (Verdaccio/Artifactory).
npm-Paketveröffentlichungsmuster für moderne TypeScript-Bibliotheken. Verwenden Sie diese Option, wenn Sie package.json-Exporte konfigurieren, duale ESM/CJS-Builds einrichten oder auf npm veröffentlichen. Verwendung für npm-publish, package-json, exports, main, module,types, dual-package, provenance, prepublishOnly. Quelle: oakoss/agent-skills.