PNPM is a fast, efficient package manager, 2x faster than NPM.
The latest version of PNPM is 7.x but it has an issue with linking packages using pnpm link useful for local development of @logosphere libraries. Therefore it's better to stick to the latest 6.x version. The issue is logged to track this and once fixed, we should be switching to 7.x because 6.x is becoming unsupported.
Turn on peer dependencies auto-install:
NX
NX is a next generation build system with first class monorepo support and powerful integrations.
PNX Alias
Try running nx command from the workspace directory and it will give you warning:
As it says in the tip, create a alias in your .bash_profile or .zshrc (MacOs only) depending on what shell you are using
Source it
Try it
Now the warning about using pnpm should be gone.
From now on, when following instructions from Nx documentation, whenever it says to use nx use pnx alias instead
Docker
Install latest version of Docker Desktop, which should include docker-compose
NX Running global Nx CLI with PNPM may have issues.
Prefer to use "pnpm" (https://pnpm.io/cli/exec)) to execute commands in this workspace.
TIP create a shortcut such as: alias pnx="pnpm nx --"