diff --git a/README.md b/README.md index 31579ee7..44bd1ebd 100644 --- a/README.md +++ b/README.md @@ -41,21 +41,40 @@ pnpm add h3
Using Nightly Releases -You can try latest changes of h3 landing to the `main` branch by using [`h3-nightly`](https://www.npmjs.com/package/h3-nightly) package. - -You can directly swap from `h3` to `h3-nightly` for both dependency and imports, or use `resolutions` feature in `package.json` (recommanded): +If you are directly using `h3` as a dependency: ```json { "dependencies": { - "h3": "latest" - }, + "h3": "npm:h3-nightly@latest" + } +} +``` + +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" + } +} +``` + +**Note:** Make sure to recreate lockfile and `node_modules` after reinstall to avoid hoisting issues. +
## Usage