/typescript-development:typescript-modules-packagingfrom typescript-development
Use when TypeScript imports, ESM or CommonJS, module resolution, package exports, declaration emit, subpaths, project references, or published consumer compatibility are involved.
Ships in typescript-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Align three contracts: the runtime loader, TypeScript's resolver and declarations, and the package's public exports. A build is not valid until supported consumers resolve all three.
Read package.json, every build/typecheck tsconfig, source extensions and import specifiers, bundler configuration, supported runtimes, and publication scripts. Determine whether the artifact is an application, an internal workspace package, or a published library and whether ESM, CommonJS, or both are explicitly required.
| Deployment | Typical compiler pairing |
|---|---|
| Modern Node package or application | module and moduleResolution set to the supported Node mode such as NodeNext |
| Bundler-owned application | module: ESNext with moduleResolution: bundler when the bundler contract supports it |
| Legacy CommonJS | A deliberate CommonJS configuration matching the runtime |
Do not mix an emit strategy and resolver that model different loaders. Under Node ESM, use runtime-valid relative extensions. Treat paths as compiler lookup guidance, not a runtime rewrite.
require() consumers are a stated requirement.exports targets with ./ paths. Put types before runtime conditions for each public entry.import and require at one ambiguous file.Run --traceResolution only for a focused failing import and interpret it using the project's installed compiler version.
| Mistake | Correction |
|---|---|
exports target lacks ./ | Use a package-relative target such as ./dist/index.js |
moduleResolution: node for Node ESM | Use the Node mode matching the supported runtime |
| Adding dual ESM/CJS by reflex | Publish one ESM build unless require() is required |
| Testing repository source imports | Pack and install the artifact in external consumers |
Publishing .d.ts without its graph | Inspect and compile the packed declarations |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cjthompson/claude-code-config --plugin typescript-development6 skills in this plugin
/dignified-typescriptUse when implementing or reviewing substantial TypeScript, designing public APIs, modeling domain state, validating runtime data, or refactoring project-scale TypeScript code./tighten-typescript-typesUse when tightening annotations in existing TypeScript, removing avoidable any or assertions, improving changed-file types, or reducing compiler errors without broad refactoring./typescript-project-toolingUse when configuring or maintaining a TypeScript repository, package manager, tsconfig files, linting, formatting, testing, builds, workspaces, CI, or publishing automation.Other plugins' skills for the same job