attw
Use this skill when the user wants to verify that an npm package's TypeScript types resolve correctly for consumers, using attw (Are the Types Wrong).
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- attw
- description
- Use this skill when the user wants to verify that an npm package's TypeScript types resolve correctly for consumers, using attw (Are the Types Wrong).
03 SKILL.md 正文
attw Plugin
attw ("Are the Types Wrong") tests whether the TypeScript types shipped in an npm
package actually resolve under every module-resolution strategy (node10, node16
CJS/ESM, bundler). Catches masquerading files, missing .d.ts, wrong types
conditions — before users report them.
Commands
Checking
attw check pack— Pack the local package and check its typesattw check npm <pkg>— Check a published npm packageattw check tarball <file.tgz>— Check a.tgztarballattw _ _— Passthrough to attw CLI
Usage Examples
- "Check if my package's types resolve correctly"
- "Does lodash's types work under node16 ESM?"
- "Verify the built tarball has correct types"
- "Add an attw check to my publish workflow"
Installation
npm install -g @arethetypeswrong/cli
# or: npx @arethetypeswrong/cli
Examples
# Standard pre-publish check
attw --pack .
# Inspect a published package
attw --from-npm react@19
# Machine-readable output
attw --pack . --format json
# Only check specific entrypoints
attw --pack . --entrypoints ./index.d.ts
Key Features
- Tests every resolution mode: node10, node16 CJS, node16 ESM, bundler
- Detects "masquerading" files (ESM syntax in .js under type:commonjs, etc.)
--format table|json|flippedoutput- Pairs with publint for complete pre-publish verification
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
quickstart
暂无简介