Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by carlos-menezes

1 month ago

https://github.com/carlos-menezes/target-run

Platform-aware script runner for Node.js projects.

  pnpm add -D target-run

Set a script body to `target-run`, then define platform/arch variants:

  {
    "scripts": {
      "test": "target-run",
      "test:darwin:arm64": "jest --config jest.apple-silicon.config.ts",
      "test:linux:x64": "jest --config jest.linux.config.ts",
      "test:default": "jest"
    }
  }

0 comments

carlos-menezes

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities