Skip to content

Commit 5c088d8

Browse files
authored
docs: clarify CLI run
closes #322
1 parent 3a353ab commit 5c088d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ Install `prettier` and `prettier-plugin-svelte` as dev dependencies in your proj
2929

3030
Then format your code using Prettier CLI. You may need to add `--plugin-search-dir=.`
3131

32+
As a one-time run:
3233
```
33-
prettier --write --plugin-search-dir=. ./**/*.html
34+
npx prettier --write --plugin-search-dir=. ./**/*.html
35+
```
36+
37+
As part of your scripts in `package.json`:
38+
```
39+
"format": "prettier --write --plugin-search-dir=. ./**/*.html"
3440
```
3541

3642
If you want to customize some formatting behavior, see section "Options" below.

0 commit comments

Comments
 (0)