Code postprocessing utility that abstracts over evolving toolsets: typecheck via @typescript/native-preview tsgo, lint/format via @biomejs/biome, compile via tsdown, emit type declarations. v3.1.5 is current stable. Active development. Key differentiator: single npx command replacing separate tsc, biome, and bundler steps, with zero config defaults but customizable via flags and config files.
npm install codeshapeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs typechecking, linting, formatting (without committing), then compiles ESM-only minified output from src/index.ts to build/.
Migrate any custom formatter setup to biome configuration.
Remove --use-prettier, use --no-commit if needed.
Use explicit tasks like `npx codeshape check` to avoid unintended compilation.
Use only one of the two to avoid confusion.
Set --compile-platform to 'node' for Node.js projects, 'browser' for browser projects.
Run `npx codeshape` in a directory where the package can find its dependencies, or install globally: `npm i -g codeshape`.
Ensure .lintignore uses the same format as .gitignore (each line a pattern).
Use `--compile-input <path>` instead of `--compile`.
Change to a valid directory before running codeshape.