From c7c6ce4769f5128dc2b329cce9a99b7ee19c4876 Mon Sep 17 00:00:00 2001 From: Damir Shamanaev Date: Tue, 26 Nov 2024 19:24:28 +0400 Subject: [PATCH] add -D flag to npm command --- external-crates/move/tooling/prettier-move/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/external-crates/move/tooling/prettier-move/README.md b/external-crates/move/tooling/prettier-move/README.md index 114fa4d28f35ab..800f50353c8058 100644 --- a/external-crates/move/tooling/prettier-move/README.md +++ b/external-crates/move/tooling/prettier-move/README.md @@ -43,8 +43,9 @@ prettier --plugin /path/to/local/npm/node_modules/@mysten/prettier-plugin-move/o If you decide to use the plugin per-project, you can install it in the project's directory. This way, the plugin will be available via `prettier` call in the project's directory. -``` -npm i prettier @mysten/prettier-plugin-move +```bash +# install as a dev-dependency +npm i -D prettier @mysten/prettier-plugin-move ``` Add the `.prettierrc` or a similar configuration file (see [all supported formats](https://prettier.io/docs/en/configuration.html)):