Browse Source

docs: bash commands

alvarosabu 2 years ago
parent
commit
806324378f
3 changed files with 22 additions and 6 deletions
  1. 3 3
      docs/guide/getting-started.md
  2. 3 3
      docs/guide/index.md
  3. 16 0
      docs/guide/migration-guide.md

+ 3 - 3
docs/guide/getting-started.md

@@ -5,15 +5,15 @@ Learn how to install TresJS
 ::: code-group
 
 ```bash [pnpm]
-pnpm add three @tresjs/core -D
+pnpm add three @tresjs/core
 ```
 
 ```bash [npm]
-npm install three @tresjs/core -D
+npm install three @tresjs/core
 ```
 
 ```bash [yarn]
-yarn add three @tresjs/core -D
+yarn add three @tresjs/core
 ```
 
 :::

+ 3 - 3
docs/guide/index.md

@@ -7,15 +7,15 @@
 ::: code-group
 
 ```bash [npm]
-npm install three @tresjs/core -D
+npm install three @tresjs/core
 ```
 
 ```bash [yarn]
-yarn add three @tresjs/core -D
+yarn add three @tresjs/core
 ```
 
 ```bash [pnpm]
-pnpm add three @tresjs/core -D
+pnpm add three @tresjs/core
 ```
 
 :::

+ 16 - 0
docs/guide/migration-guide.md

@@ -2,6 +2,22 @@
 
 This guide is intended to help you migrate from v1 to brand new shiny v2 🤩✨ of TresJS.
 
+::: code-group
+
+```bash [pnpm]
+pnpm update @tresjs/core
+```
+
+```bash [npm]
+npm update @tresjs/core
+```
+
+```bash [yarn]
+yarn upgrade @tresjs/core
+```
+
+:::
+
 ## What's new?
 
 ### Vue Custom Renderer