Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 28, 2023
1 parent 0ac6607 commit fdd7720
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,40 @@ pnpm add h3
<details>
<summary>Using Nightly Releases</summary>

You can try the latest changes of h3 landing to the `main` branch by using the [`h3-nightly`](https://www.npmjs.com/package/h3-nightly) package.
If you are directly using `h3` as a dependency:

You can directly swap from `h3` to `h3-nightly` for both dependencies and imports, or override it with your package manager (recommended):

```json5
```json
{
"dependencies": {
"h3": "latest"
},
"overrides": { //npm
"h3": "npm:h3-nightly@latest"
},
"resolutions": { //yarn
}
}
```

If you are using a framework ([Nuxt](https://nuxt.com/) or [Nitro](https://nitro.unjs.io/)) that is using `h3`:

pnpm and yarn:

```json
{
"resolutions": {
"h3": "npm:h3-nightly@latest"
}
}
```

npm:

```json
{
"overrides": {
"h3": "npm:h3-nightly@latest"
},
"pnpm": { //pnpm
"overrides": {
"h3": "npm:h3-nightly@latest"
}
},
}
}
```

**Note:** Make sure to recreate lockfile and `node_modules` after reinstall to avoid hoisting issues.

</details>

## Usage
Expand Down

0 comments on commit fdd7720

Please sign in to comment.