DEV Community

kosei
kosei

Posted on • Originally published at qiita.com

1 1

Removing "✨ Done in X.XXs." with Yarn

Introduction

I wanted to remove the "✨ Done in X.XXs." message in Yarn. In the package.json, I defined the following:

{
  "scripts": {
    "echo": "echo aaa"
  }
}
Enter fullscreen mode Exit fullscreen mode

When executed, it displays the "✨ Done in X.XXs." message.

$ yarn run echo
yarn run v1.22.10
$ echo aaa
aaa
✨  Done in 0.04s.
Enter fullscreen mode Exit fullscreen mode

--silent Option

By adding the --silent option, it disappeared.

$ yarn run --silent echo
aaa
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay