Skip to content

Commit

Permalink
mention pnpm next
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Sep 13, 2022
1 parent 22f8f85 commit 89afdef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contributing/core/developing-using-local-app.md
Expand Up @@ -4,14 +4,16 @@ There are two options to develop with your local version of the codebase:

## Develop inside the monorepo

This will use the version of `next` built inside of the Next.js monorepo. You can also let `pnpm dev` run in a separate terminal. This will let you make changes to Next.js at the same time (note that some changes might require re-running `pnpm next-with-deps` or `pnpm next`).

If your app does not have dependencies, you can create a directory inside the monorepo (eg.: `dev-app`) and run `pnpm next ./dev-app` without creating a `package.json` file.

If you already have an app and it has dependencies, you can follow these steps:

1. Move your app inside of the Next.js monorepo.

2. Run with `pnpm next-with-deps ./app-path-in-monorepo`

This will use the version of `next` built inside of the Next.js monorepo and the
main `pnpm dev` monorepo command can be running to make changes to the local
Next.js version at the same time (some changes might require re-running `pnpm next-with-deps` to take effect).

## Set as a local dependency in package.json

1. In your app's `package.json`, replace:
Expand Down

0 comments on commit 89afdef

Please sign in to comment.