Search code examples
typescriptmonorepoturborepo

How to disable Turborepo "Update available" message?


I get these message when I use Turborepo :

╭───────────────────────────────────────────────────────────────────────╮

│ │

│ Update available v1.10.1 ≫ v1.10.3 │

│ Changelog: https://github.com/vercel/turbo/releases/tag/v1.10.3

│ Run "npx @turbo/codemod update" to update │

│ │

│ Follow @turborepo for updates: https://twitter.com/turborepo

╰───────────────────────────────────────────────────────────────────────╯

They take 8 lines of console and are very obstrusive

How to disable them ? Also I don t want turborepo to be checking at all for updates, how can I disable that ?


Solution

  • You can disable the message by setting NO_UPDATE_NOTIFIER or TURBO_NO_UPDATE_NOTIFIER environment variables.

    Sample package.json:

    {
      "scripts": {
        "build": "TURBO_NO_UPDATE_NOTIFIER=true turbo run build",
      }
    }
    

    GitHub source