fix: `lib/helpers/install.ts` to better support pnpm and properly respect `root` argument (#64418)
This fixes and improves the `lib/helpers/install.ts` file (`install()`)
method to better support pnpm and properly respect the `root` argument.
I encountered an issue where by running `next <command> <project-dir>`,
and the `<command>` involved installing missing dependencies (like
`lint` or my upcoming `experimental-test`), it was not executing pnpm in
my `<project-dir>` because pnpm doesn't have a `--cwd` flag.
Closes NEXT-3092
Co-authored-by:
Zack Tanner <1939140+ztanner@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment