Skip to content

agorischek/check-1-2

Repository files navigation

check 1, 2...

Run your validation scripts (test, lint, type-checking, etc.) in parallel

Features

  • Real-time output streaming per script
  • CI-friendly
  • Supports npm, pnpm, yarn, and bun
  • Apply fixes with --fix flag

Installation

npm install -g check-1-2

Usage

Add a checks array to your package.json:

{
  "scripts": {
    "lint": "eslint .",
    "test": "jest",
    "typecheck": "tsc --noEmit"
  },
  "checks": ["test", "lint", "typecheck"]
}

Then run:

checks

Demo output

Options

Include fix scripts when applicable, then use checks --fix to run:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  },
  "checks": [{ "check": "lint", "fix": "lint:fix" }]
}

Set a custom runner (bun, pnpm, or yarn) with the runner option:

{
  "checks": {
    "runner": "bun",
    "scripts": ["lint", "test", "typecheck"]
  }
}

About

Run your validation scripts (test, lint, type-checking, etc.) in parallel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors