Skip to content

Commit 1666d31

Browse files
authored
feat: set terminal open in env var lessons (#19)
1 parent 19fa58a commit 1666d31

File tree

4 files changed

+43
-30
lines changed

4 files changed

+43
-30
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"format": "prettier src --write"
1515
},
1616
"dependencies": {
17-
"@tutorialkit/components-react": "^0.1.3",
17+
"@tutorialkit/components-react": "^0.1.6",
1818
"react": "^18.2.0",
1919
"react-dom": "^18.2.0"
2020
},
@@ -23,9 +23,9 @@
2323
"@astrojs/react": "^3.3.4",
2424
"@iconify-json/ph": "^1.1.12",
2525
"@iconify-json/svg-spinners": "^1.1.2",
26-
"@tutorialkit/astro": "^0.1.3",
27-
"@tutorialkit/theme": "^0.1.3",
28-
"@tutorialkit/types": "^0.1.3",
26+
"@tutorialkit/astro": "^0.1.6",
27+
"@tutorialkit/theme": "^0.1.6",
28+
"@tutorialkit/types": "^0.1.6",
2929
"@types/node": "^20.12.7",
3030
"@unocss/reset": "^0.59.4",
3131
"@unocss/transformer-directives": "^0.59.4",

pnpm-lock.yaml

Lines changed: 36 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/tutorial/vite-plugin/env-plugin/env-variables-in-load-hook/content.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Env variables in the load hook
44
focus: /vite.config.ts
55
mainCommand: ""
66
terminal:
7+
open: true
78
activePanel: 1
89
panels:
910
- ["terminal", "Terminal"]
@@ -42,7 +43,7 @@ load(id, options) {
4243
},
4344
```
4445

45-
Next, let's open up the terminal and start Vite server while providing an environment variable:
46+
Next, let's start Vite server from the terminal while providing an environment variable:
4647

4748
```sh
4849
TUTORIAL_MY_MESSAGE="Hello world" npm run dev

src/content/tutorial/vite-plugin/env-plugin/summarize-env-plugin/content.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Summary
44
focus: /vite.config.ts
55
mainCommand: ""
66
terminal:
7+
open: true
78
activePanel: 1
89
panels:
910
- ["terminal", "Terminal"]

0 commit comments

Comments
 (0)