This outputs the installed pnpm version for confirmation during workflow execution.
Additional Notes
Use the same pnpm_version as used in local development for consistency.
Ensure any package.json files are compatible with pnpm. Run pnpm install locally to verify.
Using PNPM in Monorepos
When working with monorepos, pnpm offers several advantages including strict module resolution and efficient workspace management. To configure Speakeasy to use pnpm in your monorepo:
Local Development Configuration
Add the compileCommand configuration to your gen.yaml file:
typescript: compileCommand: - pnpm - install
Workspace Configuration
Ensure your pnpm-workspace.yaml includes the SDK directory:
packages: - "packages/*" - "sdk/*" # Include your SDK location
Benefits for Monorepos
Strict module resolution: Prevents dependency confusion between packages
Efficient storage: Shared dependencies across workspace packages