From 4a775cf17d2f5d0171e00778dddad1cecd34a79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E6=B8=B8=E5=90=9B?= Date: Tue, 28 Sep 2021 11:00:09 +0800 Subject: [PATCH] docs: add link guide (#3698) * docs: add link guide * docs: add link guide trap --- DEV_FAQ.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/DEV_FAQ.md b/DEV_FAQ.md index 2283dcf49e2c9..31d361c36e946 100644 --- a/DEV_FAQ.md +++ b/DEV_FAQ.md @@ -7,3 +7,21 @@ Here are the problems that are easy to encounter in development. ```bash pnpm i ``` + +## Link local dependencies + +```bash +# get dist +pnpm build +cd dist/element-plus +# set cur element-plus to global `node_modules` +pnpm link --global +# for esm we also need link element-plus for dist +pnpm link --global element-plus + +# go to your project, link to `element-plus` +cd your-project +pnpm link --global element-plus +``` + +> More info see [link | pnpm](https://pnpm.io/zh/cli/link).