← Back to context

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"
    }
  }