Skip to content

Commit 57ed91a

Browse files
committed
fix: move wrangler out of dependencies
1 parent 24d71a7 commit 57ed91a

File tree

5 files changed

+144
-178
lines changed

5 files changed

+144
-178
lines changed

README.md

+7-11
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,19 @@ Read more on https://docs.hub.nuxt.com
1717

1818
## Quick Setup
1919

20-
1. Add `@nuxthub/core` dependency to your project
20+
1. Install `@nuxthub/core` dependency to your project:
2121

2222
```bash
23-
# Using pnpm
24-
pnpm add @nuxthub/core
25-
26-
# Using yarn
27-
yarn add @nuxthub/core
23+
npx nypm@latest add @nuxthub/core
24+
```
2825

29-
# Using npm
30-
npm install @nuxthub/core
26+
2. Install `wrangler` development dependency to your project:
3127

32-
# Using bun
33-
npm add @nuxthub/core
28+
```bash
29+
npx nypm@latest add -D wrangler
3430
```
3531

36-
2. Add `@nuxthub/core` to the `modules` section of `nuxt.config.ts`
32+
3. Add `@nuxthub/core` to the `modules` section of `nuxt.config.ts`
3733

3834
```js
3935
export default defineNuxtConfig({

docs/content/1.getting-started/2.installation.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,29 @@ bun add @nuxthub/core
2828

2929
::
3030

31-
2. Add it to your `modules` section in your `nuxt.config`:
31+
2. Install `wrangler` development dependency to your project:
32+
33+
::code-group
34+
35+
```bash [pnpm]
36+
pnpm add -D wrangler
37+
```
38+
39+
```bash [yarn]
40+
yarn add --dev wrangler
41+
```
42+
43+
```bash [npm]
44+
npm install --save-dev @nuxthub/core
45+
```
46+
47+
```bash [bun]
48+
bun add --dev @nuxthub/core
49+
```
50+
51+
::
52+
53+
3. Add it to your `modules` section in your `nuxt.config`:
3254

3355
```ts [nuxt.config.ts]
3456
export default defineNuxtConfig({

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"ufo": "^1.4.0",
5252
"uncrypto": "^0.1.3",
5353
"unstorage": "^1.10.1",
54-
"wrangler": "^3.29.0",
5554
"zod": "^3.22.4"
5655
},
5756
"devDependencies": {
@@ -65,6 +64,7 @@
6564
"nuxt": "^3.10.3",
6665
"typescript": "^5.3.3",
6766
"vitest": "^1.3.1",
68-
"vue-tsc": "^1.8.27"
67+
"vue-tsc": "^1.8.27",
68+
"wrangler": "^3.29.0"
6969
}
70-
}
70+
}

0 commit comments

Comments
 (0)