Add Deno commands to docs (#19419)
This commit is contained in:
1 parent
bf3ca0c886
commit
aadd3ee2b8
4 files changed
+55
-1
No files matched your search
@@ -36,6 +36,13 @@ pnpm add --save-dev --save-exact prettier@%PRETTIER_VERSION%
|
||||
bun add --dev --exact prettier@%PRETTIER_VERSION%
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="deno">
|
||||
|
||||
```bash
|
||||
deno install --dev --save-exact prettier@%PRETTIER_VERSION%
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
@@ -136,6 +143,19 @@ If you forget to install Prettier first, `bunx` will temporarily download the la
|
||||
|
||||
:::
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="deno">
|
||||
|
||||
```bash
|
||||
deno x prettier . --write
|
||||
```
|
||||
|
||||
:::info
|
||||
|
||||
What is `deno x` doing at the start? It runs the locally installed Prettier. We’ll leave off the `deno x` part for brevity throughout the rest of this file!
|
||||
|
||||
:::
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
@@ -219,6 +239,15 @@ bunx husky init
|
||||
bun --eval "fs.writeFileSync('.husky/pre-commit','bunx lint-staged\n')"
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="deno">
|
||||
|
||||
```bash
|
||||
deno install --dev husky lint-staged
|
||||
deno x husky init
|
||||
deno eval "Deno.writeTextFileSync('.husky/pre-commit','deno x lint-staged\n')"
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
Reference in new issue
Block a user