You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will install dependencies and link all of the local packages together using `lerna`. This includes the example projects which will now point to the local version of your packages.
18
18
19
19
```bash
20
-
yarn dev
20
+
pnpm dev
21
21
```
22
22
23
-
This starts compiling the packages into their respective `build` folders. Under the hood, it is running `tsc --watch` and `tsup --watch`, so every time you make a change to one of the packages, the build will be updated automatically as long as this command is running.
23
+
This starts compiling the packages into their respective `build` folders
24
24
25
-
With `yarn dev` running in one tab, we recommend opening a second tab and navigating to the `examples/minimal` directory.
25
+
With `pnpm dev` running in one tab, we recommend opening a second tab and navigating to the `examples/minimal` directory.
26
26
27
27
```bash
28
28
cd examples/minimal
29
-
yarn dev
29
+
pnpm dev
30
30
```
31
31
32
-
Running `yarn dev` from the `examples/minimal` directory will start the example project's Next.js dev server. This project should be using your locally built version of the libraries because they have been linked using `lerna`.
32
+
Running `pnpm dev` from the `examples/minimal` directory will start the example project's Next.js dev server. This project ill be using your locally built version of the libraries.
33
33
34
34
You should now be able to open `http://localhost:3000` to view and debug the example project.
35
35
36
36
### Gotchas
37
37
38
-
Whenever you make a change to one of the packages, the `yarn dev` from the project root will re-compile that package, and the `yarn dev` from the example project's Next.js dev server should hot-reload it in the browser.
38
+
Whenever you make a change to one of the packages, the `pnpm dev` from the project root will re-compile that package, and the `pnpm dev` from the example project's Next.js dev server should hot-reload it in the browser.
39
39
40
-
Sometimes, this process gets a little out of whack, and if you're not sure what's going on, I usually just quit one or both of the `yarn dev` commands and restart them.
40
+
Sometimes, this process gets a little out of whack, and if you're not sure what's going on, I usually just quit one or both of the `pnpm dev` commands and restart them.
41
41
42
-
If you're seeing something unexpected while debugging one of the Next.js demos, try running `rm -rf .next` to refresh the Next.js cache before running `yarn dev` again.
42
+
If you're seeing something unexpected while debugging one of the Next.js demos, try running `rm -rf .next` to refresh the Next.js cache before running `pnpm dev` again.
0 commit comments