Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dmijatovic/pnpm-workspaces

Testing pnpm workspaces
https://github.com/dmijatovic/pnpm-workspaces

Last synced: 10 days ago
JSON representation

Testing pnpm workspaces

Awesome Lists containing this project

README

        

# PNPM workspaces test

This repo tests use of pnmp and workspaces for monorepo setup of the project. The goals is to have multiple modules in the same project and enable sharing of components and utility methods among the modules.

## Install pnpm

For more options [see documentation](https://pnpm.io/installation)

```bash
# install using npm
npm install -g pnpm

# validate
pnpm --version
```

## Initialise pnpm project

```bash
pnpm init
```

## Create workspace

Create pnpm-workspace.yaml file and define modules

```yaml
packages:
- 'rsd-home'
- 'rsd-software'
- 'rsd-projects'
- 'rsd-core'
```

## Install/link local modules

```bash
# add rsd-core package to rsd-software within workspace
pnpm add @rsd/core --filter @rsd/software --workspace
```