Course lesson
Run App Specific Commands in a Monorepo
To run specific commands inside a monorepo we have to type npm run then the name of the command, build. We then add the flag -w for watch mode and specify which package we want to run the build command. In this case, it’s going to be the utils package.
- Duration
- 1 min
- Access
- Included
- Transcript
- Retained from source evidence
To run specific commands inside a monorepo we have to type npm run then the name of the command, build. We then add the flag -w for watch mode and specify which package we want to run the build command. In this case, it’s going to be the utils package.
The full command will look like, npm run build -2 @monorepo/utils.
If you want to run all of the commands, you'll need to add the -ws flag.
The full command for running all of our build commands will look like, npm run build -ws.