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).
Modelli di pubblicazione di pacchetti npm per le moderne librerie TypeScript. Da utilizzare durante la configurazione delle esportazioni package.json, l'impostazione di doppie build ESM/CJS o la pubblicazione su npm. Utilizzare per npm-publish, pacchetto-json, esportazioni, principale, modulo, tipi, doppio pacchetto, provenienza, prepublishOnly. Fonte: oakoss/agent-skills.