Skip to content

Commit

Permalink
pnpm: migrate from lerna to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr committed Sep 6, 2021
1 parent 10734df commit 839d0ed
Show file tree
Hide file tree
Showing 10 changed files with 4,487 additions and 9,149 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
10 changes: 10 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
14 changes: 11 additions & 3 deletions .github/workflows/github-actions-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npx lerna bootstrap --ci
- run: npm run build
- run: npm test
# https://pnpm.io/continuous-integration
- name: Cache .pnpm-store
uses: actions/cache@v1
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install pnpm
run: curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6
- run: pnpm install
- run: pnpm build
- run: pnpm test
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ See [OpenAPI Generator+ CLI](https://github.com/karlvr/openapi-generator-plus/tr

## Building the project

This project uses [nvm](https://github.com/nvm-sh/nvm) for managing the versions of node and npm, and [lerna](https://github.com/lerna/lerna) for managing the monorepo project structure.
This project uses [nvm](https://github.com/nvm-sh/nvm) for managing the versions of node, and [pnpm](https://pnpm.io) for installing packages and managing the monorepo project structure.

To setup `nvm`:

Expand All @@ -17,16 +17,22 @@ nvm install
nvm use
```

To install pnpm:

```shell
npm -g install pnpm
```

To install and build the project:

```shell
npx lerna bootstrap
npm run build
npm run watch
pnpm install
pnpm build
pnpm watch
```

To run the tests:

```shell
npm test
pnpm test
```
6 changes: 0 additions & 6 deletions lerna.json

This file was deleted.

Loading

0 comments on commit 839d0ed

Please sign in to comment.