Useful Links
Computer Science
Other Tools and Technologies
pnpm Package Manager
1. Introduction to pnpm
2. Core Concepts and Architecture
3. Getting Started
4. Managing Dependencies
5. Running Scripts and Executing Binaries
6. Workspaces and Monorepos
7. Configuration
8. Advanced Features and Commands
9. Lockfiles and Dependency Management
10. Performance and Optimization
11. Troubleshooting and Debugging
12. Comparison and Migration
13. Integration with Development Tools
14. Framework and Tool Integration
15. Security and Auditing
16. Publishing and Distribution
Workspaces and Monorepos
Introduction to pnpm Workspaces
Benefits of Workspaces
Use Cases for Monorepos
Setting Up a Workspace
Creating the pnpm-workspace.yaml File
Defining Package Globs
Organizing Project Structure
Managing Workspace Dependencies
Adding Dependencies to the Root
Using -w flag
Adding Dependencies to Specific Packages
Using --filter flag
Targeting Multiple Packages
Cross-Package Linking
The workspace Protocol
Syntax and Usage
Resolving Local Packages
Running Commands in Workspaces
Recursive Commands
pnpm recursive
-r flag
Filtering Commands
By Package Name
By Directory Location
By Dependencies
Running Scripts Across Packages
Parallel and Sequential Execution
Previous
5. Running Scripts and Executing Binaries
Go to top
Next
7. Configuration