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)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More