DEV Community

kosei
kosei

Posted on • Originally published at qiita.com

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)