Package Publishing Overview Covers modern npm package authoring: configuration with the 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). Quick Reference | Pattern | Field / Command | Key Points |…