pnpm-publishing
Installation
SKILL.md
Publishing TypeScript Packages (Constructive Standard)
Publish TypeScript packages to npm using makage for builds and lerna for versioning. This covers the dist-folder publishing pattern that prevents tree-shaking into weird import paths.
When to Apply
Use this skill when:
- Building TypeScript packages for npm publishing
- Configuring makage for package builds
- Running lerna version and publish workflows
- Setting up the dist-folder publishing pattern
Why Dist-Folder Publishing?
Constructive publishes from the dist/ folder to:
- Prevent consumers from importing internal paths (
my-pkg/src/internal) - Ensure clean package structure on npm
- Keep source files out of published package
- Maintain consistent import paths