diff --git a/docs/contributing-guide/environment-setup/mac-os.md b/docs/contributing-guide/environment-setup/mac-os.md index 67a87a0c..c0ebded2 100644 --- a/docs/contributing-guide/environment-setup/mac-os.md +++ b/docs/contributing-guide/environment-setup/mac-os.md @@ -66,12 +66,12 @@ Chatwoot requires `node` version `20`. Install Node.js from NodeSource using the brew install node@20 ``` -### Install yarn +### Install pnpm -We use `yarn` as package manager +We use `pnpm` as package manager ```bash -brew install yarn +brew install pnpm ``` ### Install postgres diff --git a/docs/contributing-guide/environment-setup/make.md b/docs/contributing-guide/environment-setup/make.md index 27bbbd49..3c2992f4 100644 --- a/docs/contributing-guide/environment-setup/make.md +++ b/docs/contributing-guide/environment-setup/make.md @@ -15,7 +15,7 @@ cd chatwoot ## Install Ruby & JavaScript dependencies -Install Ruby and JavaScript dependencies using the following command. This command runs Bundler and Yarn: +Install Ruby and JavaScript dependencies using the following command. This command runs Bundler and pnpm: ``` make burn ``` diff --git a/docs/contributing-guide/environment-setup/ubuntu.md b/docs/contributing-guide/environment-setup/ubuntu.md index 30269d35..704ae170 100644 --- a/docs/contributing-guide/environment-setup/ubuntu.md +++ b/docs/contributing-guide/environment-setup/ubuntu.md @@ -54,17 +54,12 @@ curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt-get install -y nodejs ``` -### Install yarn +### Install pnpm -We use `yarn` as the package manager: +We use `pnpm` as the package manager: ```bash -curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - -echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list -``` - -```bash -sudo apt-get update && sudo apt-get install yarn +curl -fsSL https://get.pnpm.io/install.sh | sh - ``` ### Install postgres diff --git a/docs/contributing-guide/environment-setup/windows.md b/docs/contributing-guide/environment-setup/windows.md index 410cd3fa..1abb6d1b 100644 --- a/docs/contributing-guide/environment-setup/windows.md +++ b/docs/contributing-guide/environment-setup/windows.md @@ -47,17 +47,12 @@ curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt-get install -y nodejs ``` -### Install yarn +### Install pnpm -We use `yarn` as the package manager +We use `pnpm` as the package manager ```bash -curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - -echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list -``` - -```bash -sudo apt-get update && sudo apt-get install yarn +npm install -g pnpm ``` ### Install postgres diff --git a/docs/contributing-guide/mobile-app/setup-guide.md b/docs/contributing-guide/mobile-app/setup-guide.md index 520892b8..a609a130 100644 --- a/docs/contributing-guide/mobile-app/setup-guide.md +++ b/docs/contributing-guide/mobile-app/setup-guide.md @@ -19,7 +19,7 @@ title: "Setup guide for mobile app" - [Node.js](https://nodejs.org/en/download/) - [Watchman](https://facebook.github.io/watchman/docs/install.html) -- [Yarn](https://yarnpkg.com/en/docs/install) +- [pnpm](https://pnpm.io/installation) To learn more about the most up-to-date instructions, please refer to the guide available [here](https://reactnative.dev/docs/environment-setup?guide=native). diff --git a/docs/contributing-guide/project-setup.md b/docs/contributing-guide/project-setup.md index f4063cac..92645540 100644 --- a/docs/contributing-guide/project-setup.md +++ b/docs/contributing-guide/project-setup.md @@ -18,7 +18,7 @@ cd chatwoot ### Install Ruby & Javascript dependencies -Use the following command to run `bundle && yarn` to install ruby and Javascript dependencies. +Use the following command to run `bundle && pnpm install` to install ruby and Javascript dependencies. ```bash make burn @@ -128,7 +128,7 @@ https://docs.cypress.io/guides/overview/why-cypress.html # in terminal tab1 overmind start -f Procfile.test # in terminal tab2 -yarn cypress open --project ./test +pnpm cypress open --project ./test ``` diff --git a/docs/contributing-guide/tests/cypress.md b/docs/contributing-guide/tests/cypress.md index 060b8aeb..75f9efed 100644 --- a/docs/contributing-guide/tests/cypress.md +++ b/docs/contributing-guide/tests/cypress.md @@ -66,5 +66,5 @@ Navigate to your chatwoot local directory and Execute the following command to r ```bash -yarn cypress open --project ./spec +pnpm cypress open --project ./spec ``` diff --git a/docs/self-hosted/deployment/clevercloud.md b/docs/self-hosted/deployment/clevercloud.md index 509f0404..7108ea1a 100644 --- a/docs/self-hosted/deployment/clevercloud.md +++ b/docs/self-hosted/deployment/clevercloud.md @@ -41,7 +41,7 @@ To install the dependencies, you have to setup builds hooks. Set the following i ``` CC_POST_BUILD_HOOK="RAILS_ENV=production rails assets:precompile" -CC_PRE_BUILD_HOOK="yarn install" +CC_PRE_BUILD_HOOK="pnpm install" CC_PRE_RUN_HOOK="rake db:chatwoot_prepare" ``` @@ -61,7 +61,7 @@ Make sure you have the following environment variables configured in the applica ``` CC_POST_BUILD_HOOK="RAILS_ENV=production rails assets:precompile" -CC_PRE_BUILD_HOOK="yarn install" +CC_PRE_BUILD_HOOK="pnpm install" CC_PRE_RUN_HOOK="rake db:chatwoot_prepare" DATABASE_URL="" FRONTEND_URL="" diff --git a/docs/self-hosted/deployment/linux-vm.md b/docs/self-hosted/deployment/linux-vm.md index 6d4a0af1..46c81826 100644 --- a/docs/self-hosted/deployment/linux-vm.md +++ b/docs/self-hosted/deployment/linux-vm.md @@ -91,7 +91,7 @@ rvm use 3.2.2 --default # Update dependencies bundle -yarn +pnpm install # Recompile the assets rake assets:precompile RAILS_ENV=production