docs(dev): add install step to CONTRIBUTING.md (#5604)

This commit is contained in:
tessaSAC 2021-11-11 02:45:19 -05:00 committed by GitHub
parent a44f4809eb
commit a383fb46ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,11 @@ The Vite repo is a monorepo using pnpm workspaces. The package manager used to i
To develop and test the core `vite` package:
1. Go to `packages/vite` and run `pnpm run dev`. This starts `rollup` in watch mode.
1. Run `pnpm i` in Vite's root folder
2. Run `pnpm link --global` in `packages/vite`. This links `vite` globally so that you can:
2. Go to `packages/vite` and run `pnpm run dev`. This starts `rollup` in watch mode.
3. Run `pnpm link --global` in `packages/vite`. This links `vite` globally so that you can:
- Run `pnpm link vite` in another Vite project to use the locally built Vite;
- Use the `vite` binary anywhere.