dev-npm-workspace
Installation
SKILL.md
NPM Workspace Setup
What is it?
A comprehensive skill for setting up npm workspaces following the standardized monorepo architecture defined here. This skill provides an interactive workflow to analyze the target repository and generate a complete workspace configuration including TypeScript project references, subpath exports, and cross-package dependency management.
Why use it?
- Production-ready structure: Based on a mature monorepo layout with multiple packages
- TypeScript-first: Full project references with incremental builds via tsgo
- Modern ESM: Proper
"type": "module"and subpath exports for tree-shaking - Cross-package deps: Workspace protocol (
*) for local package references - Scalable: Supports nested package structures (e.g.,
examples/ecom/backend) - Private registry ready: GitHub npm Package Registry or custom npm registry support