setup-better-typescript

Installation
SKILL.md

Set Up Better TypeScript

Set up @better-typescript/better-typescript in the package from which the linter will run.

Procedure

  1. Detect npm or Bun from packageManager and the lockfile, then use that package manager so it updates the existing lockfile.

  2. Choose the setup package:

    • In a single-package repository, use the repository root.
    • In a monorepo, use the root when running there analyzes all intended code. Otherwise use each requested TypeScript workspace. Ask about scope only when it is unclear.
    • The chosen directory must contain both package.json and tsconfig.json, because better-typescript loads ./tsconfig.json from its working directory.
  3. Add the dev dependency in the chosen package:

    npm

    npm install --save-dev @better-typescript/better-typescript
    
Installs
13
GitHub Stars
1
First Seen
7 days ago
setup-better-typescript — andrueandersoncs/skills