Article Archive, Sorted by Release Stage
Most archives sort by date. That is not much use for evergreen packaging articles, so this one sorts by when in a package's life you are likely to need each page. Find the stage you are at and read down the list. Older posts and section pages that are not sorted here appear in the related links at the bottom.
Before the first publish
Decisions that are cheap now and expensive later: the name, the shape of the public API, the licence and the build layout.
- An essay on naming conventions: why a name is effectively permanent once people depend on it.
- Names and typosquatting: checking that your name is not one keystroke from someone else's.
- Public API design in five modules: keeping the exported surface small enough to support.
- Permissive and copyleft licences compared, then writing the SPDX identifier into your manifest.
- Python packaging with pyproject.toml and publishing Go modules, for those two ecosystems specifically.
- Configuring the exports field and dual ESM and CommonJS builds, for JavaScript packages.
- How TypeScript locates your types, if you ship declarations.
At release time
The mechanics of getting a correct artefact onto a registry, repeatably.
- Inspecting the tarball before you publish: the cheapest check there is.
- Choosing a test matrix across runtimes and dependency versions.
- PyPI Trusted Publishing setup and a tag-triggered publishing workflow, to drop long-lived tokens.
- A release pipeline, diagram by diagram.
- Writing a changelog entry and Conventional Commits questions.
- Releasing from a monorepo, when one repository holds several packages.
- A pre-holiday release freeze, for timing a release sensibly.
After release: versioning and change
Once people depend on you, every change is a promise kept or broken.
- Semver for package authors, followed by the awkward edge cases.
- Practice reading npm ranges, so you know what your users' installs will actually pick up.
- Writing a deprecation policy, deprecation warnings that help and deprecating a single function.
- Writing a migration guide for a major version.
- What research says about breaking changes.
Ongoing: security, licences and upkeep
- Provenance attestations in depth and Sigstore signing.
- Following security advisories and where vulnerability data comes from.
- An annual dependency audit and tracking runtime end-of-life dates.
- Shipping third-party licence notices and licence compatibility questions.
- What it costs to maintain a package, for the long view.
Short standalone notes
The numbered notes in the root of the site each cover one narrow task: metadata that helps people find a package, shipping a command-line tool, optional dependencies and extras, generating API reference docs, building Python wheels for several platforms, the Go retract directive, reproducible builds and the risks of npm install scripts. Definitions for terms used across all of these live in the glossary.
Related pages
- The Case for Fewer Dependencies in Your Package
- Declaring Runtime Support With the engines Field
- The pyproject.toml Fields I Fill In Before Every Release
- What 0.x Versions Actually Promise Under Semver
- Errors Are Part of Your Library's Public API
- Illustrative Example: A Breaking Change in a Patch Release
- Worked Scenario: Tightening a Peer Dependency Range
- Illustrative Example: The Missing requires-python Bound
- AmericaModule - Guides & Free Tools for Reusable Code Modules