We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0780f5 commit fac9ce0Copy full SHA for fac9ce0
2 files changed
docs/install.md
@@ -20,3 +20,9 @@ npm install --global prettier
20
```
21
22
> We recommend pinning an exact version of prettier in your `package.json` as we introduce stylistic changes in patch releases.
23
+
24
+If you use `npx` to run Prettier, the version should be pinned like this:
25
26
+```bash
27
+npx prettier@2.0.1 . --write
28
+```
scripts/release/steps/update-version.js
@@ -15,6 +15,9 @@ async function bump({ version }) {
15
processFile(".github/ISSUE_TEMPLATE/integration.md", (content) =>
16
content.replace(/^(- Prettier Version: ).*?$/m, `$1${version}`)
17
);
18
+ processFile("docs/install.md", (content) =>
19
+ content.replace(/^(npx prettier@)\S+/m, `$1${version}`)
+ );
// Update unpkg link in docs
processFile("docs/browser.md", (content) =>
0 commit comments