An open API service indexing awesome lists of open source software.

https://github.com/kovalenkovpu/monorepo-npm

Example of using npm workspaces
https://github.com/kovalenkovpu/monorepo-npm

npm npm-workspaces reactjs workspaces

Last synced: about 1 month ago
JSON representation

Example of using npm workspaces

Awesome Lists containing this project

README

          

# `npm` workspaces monorepository example

### Usage:
- checkout the project
- `npm install` on this repo root level. This will install common dependencies on a root level (common dependencies), also will install specific dependencies inside each package level
- `npm run -w @monorepo-npm/` to run the command for a `` repo. For that, the `` should exist in the `package.json` for the targeted workspace
- `npm run -ws` to run the command for all workspaces. E.g. `npm run test -ws`

### More details on the usage is [here](https://docs.npmjs.com/cli/v7/using-npm/workspaces).

## Important! `npm` v.7.x is required