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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay