From d0e333e9c32d4e2d944d09596dad4d1b15b0d0d2 Mon Sep 17 00:00:00 2001 From: Sagar Dwivedi Date: Wed, 7 Aug 2024 13:13:20 +0530 Subject: [PATCH 1/3] docs: add command to install using bun --- docs/framework/react/installation.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/framework/react/installation.md b/docs/framework/react/installation.md index 55892b3f4c..abf315b135 100644 --- a/docs/framework/react/installation.md +++ b/docs/framework/react/installation.md @@ -8,6 +8,10 @@ You can install TanStack Router with any [NPM](https://npmjs.com) package manage npm install @tanstack/react-router ``` +```sh +bun add @tanstack/react-router +``` + TanStack Router is currently only compatible with React and ReactDOM. If you would like to contribute to the React Native adapter, please reach out to us on [Discord](https://tlinz.com/discord). ### Requirements From 5f064da06277451bcb6eaedae5cee5b601fc1688 Mon Sep 17 00:00:00 2001 From: sagardwivedi Date: Wed, 7 Aug 2024 13:37:05 +0530 Subject: [PATCH 2/3] added support for all package manager --- docs/framework/react/installation.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/framework/react/installation.md b/docs/framework/react/installation.md index abf315b135..9d477c3932 100644 --- a/docs/framework/react/installation.md +++ b/docs/framework/react/installation.md @@ -4,11 +4,13 @@ title: Installation You can install TanStack Router with any [NPM](https://npmjs.com) package manager. -```sh -npm install @tanstack/react-router -``` - -```sh +```bash +npm i @tanstack/react-router +# or +pnpm add @tanstack/react-router +#or +yarn add @tanstack/react-router +#or bun add @tanstack/react-router ``` From 6ed94ebcefb21ea7036335db415c4e6f793de108 Mon Sep 17 00:00:00 2001 From: sagardwivedi Date: Wed, 7 Aug 2024 13:51:03 +0530 Subject: [PATCH 3/3] added support for all package manager in quick-start.md --- docs/framework/react/quick-start.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/framework/react/quick-start.md b/docs/framework/react/quick-start.md index e7c265bb9e..07d08da9dd 100644 --- a/docs/framework/react/quick-start.md +++ b/docs/framework/react/quick-start.md @@ -11,7 +11,13 @@ File based route generation (through Vite, and other supported bundlers) is the ### Install the Vite Plugin and the Router Devtools ```bash -npm install --save-dev @tanstack/router-plugin @tanstack/router-devtools +npm i -D @tanstack/router-plugin @tanstack/router-devtools +# or +pnpm add -D @tanstack/router-plugin @tanstack/router-devtools +# or +yarn add -D @tanstack/router-plugin @tanstack/router-devtools +# or +bun add -D @tanstack/router-plugin @tanstack/router-devtools ``` ### Configure the Vite Plugin