Release 2.1.0
This commit is contained in:
1 parent
5223b78dcd
commit
6365138f40
14 files changed
+64
-63
No files matched your search
@@ -7,7 +7,7 @@ original_id: watching-files
|
||||
You can have Prettier watch for changes from the command line by using [onchange](https://www.npmjs.com/package/onchange). For example:
|
||||
|
||||
```bash
|
||||
npx onchange '**/*.js' -- npx prettier --write {{changed}}
|
||||
npx onchange "**/*" -- npx prettier --write --ignore-unknown {{changed}}
|
||||
```
|
||||
|
||||
Or add the following to your `package.json`:
|
||||
@@ -15,7 +15,7 @@ Or add the following to your `package.json`:
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"prettier-watch": "onchange '**/*.js' -- prettier --write {{changed}}"
|
||||
"prettier-watch": "onchange \"**/*\" -- prettier --write --ignore-unknown {{changed}}"
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user