Remove references to yarn and replace them with pnpm

This commit is contained in:
Luke Vella 2025-04-26 20:03:24 +01:00
parent 3552a5e3aa
commit 880cc07c79
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
12 changed files with 27 additions and 2073 deletions

View file

@ -8,7 +8,7 @@ inputs:
cache:
description: "Package manager for caching"
required: false
default: "yarn"
default: "pnpm"
runs:
using: "composite"
steps:

View file

@ -1,8 +1,8 @@
name: "Yarn Install"
description: "Runs yarn install with --frozen-lockfile"
name: "Pnpm Install"
description: "Runs pnpm install with --frozen-lockfile"
runs:
using: "composite"
steps:
- name: Run yarn install
run: yarn install --frozen-lockfile
- name: Run pnpm install
run: pnpm install --frozen-lockfile
shell: bash

View file

@ -18,10 +18,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/yarn-install
- uses: ./.github/actions/pnpm-install
- name: Check types
run: yarn type-check
run: pnpm type-check
sherif:
name: Sherif
@ -39,10 +39,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/yarn-install
- uses: ./.github/actions/pnpm-install
- name: Check linting rules
run: yarn lint
run: pnpm lint
unit-tests:
name: Unit tests
@ -50,10 +50,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/yarn-install
- uses: ./.github/actions/pnpm-install
- name: Run tests
run: yarn test:unit
run: pnpm test:unit
# Label of the container job
integration-tests:
@ -66,25 +66,25 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/yarn-install
- uses: ./.github/actions/pnpm-install
- name: Install system dependencies
run: sudo apt-get update
- name: Install playwright dependencies
run: yarn playwright install --with-deps chromium
run: pnpm playwright install --with-deps chromium
- name: Create production build
run: yarn turbo build:test --filter=@rallly/web
run: pnpm turbo build:test --filter=@rallly/web
- name: Start services
run: yarn docker:up
run: pnpm docker:up
- name: Setup database
run: yarn db:deploy
run: pnpm db:deploy
- name: Run tests
run: yarn turbo test:integration
run: pnpm turbo test:integration
- name: Upload artifact playwright-report
if: ${{ success() || failure() }}

2
.gitignore vendored
View file

@ -21,8 +21,6 @@ node_modules
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env

View file

@ -38,7 +38,7 @@ The following instructions are for running the project locally for development.
2. Install dependencies
```bash
yarn
pnpm install
```
3. Setup environment variables
@ -54,7 +54,7 @@ The following instructions are for running the project locally for development.
4. Generate Prisma client
```bash
yarn db:generate
pnpm db:generate
```
5. Setup database
@ -64,13 +64,13 @@ The following instructions are for running the project locally for development.
To start the database, run:
```bash
yarn docker:up
pnpm docker:up
```
Next run the following command to setup the database:
```bash
yarn db:reset
pnpm db:reset
```
This will:
@ -82,7 +82,7 @@ The following instructions are for running the project locally for development.
6. Start the Next.js server
```bash
yarn dev
pnpm dev
```
## Contributors

View file

@ -13,7 +13,7 @@ To preview your changes locally, you can use the [mintlify cli](https://mintlify
Install the cli globally:
```bash
yarn global add mintlify
pnpm install --global mintlify
```
Navigate to this directory (where you can find `mint.json`):

View file

@ -1,5 +1,5 @@
{
"installCommand": "yarn install",
"buildCommand": "cd ../.. && yarn db:generate && yarn build:landing",
"installCommand": "pnpm install",
"buildCommand": "cd ../.. && pnpm db:generate && pnpm build:landing",
"outputDirectory": ".next"
}

View file

@ -13,7 +13,6 @@
"i18n:scan": "i18next-scanner --config i18next-scanner.config.js",
"test:integration": "NODE_ENV=test playwright test",
"test:unit": "vitest run",
"test": "yarn test:unit && yarn test:e2e",
"test:codegen": "playwright codegen http://localhost:3000",
"docker:start": "./scripts/docker-start.sh"
},

View file

@ -1,5 +1,5 @@
{
"installCommand": "yarn install",
"buildCommand": "cd ../.. && yarn db:generate && yarn build:web && yarn db:deploy",
"installCommand": "pnpm install",
"buildCommand": "cd ../.. && pnpm db:generate && pnpm build:web && pnpm db:deploy",
"outputDirectory": ".next"
}

View file

@ -1,27 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@prisma/client@^4.10.1":
version "4.10.1"
resolved "https://registry.yarnpkg.com/@prisma/client/-/client-4.10.1.tgz#c47fd54661ee74b174cee63e9dc418ecf57a6ccd"
integrity sha512-VonXLJZybdt8e5XZH5vnIGCRNnIh6OMX1FS3H/yzMGLT3STj5TJ/OkMcednrvELgk8PK89Vo3aSh51MWNO0axA==
dependencies:
"@prisma/engines-version" "4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19"
"@prisma/engines-version@4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19":
version "4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19"
resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-4.10.1-2.aead147aa326ccb985dcfed5b065b4fdabd44b19.tgz#312359d9d00e39e323136d0270876293d315658e"
integrity sha512-tsjTho7laDhf9EJ9EnDxAPEf7yrigSMDhniXeU4YoWc7azHAs4GPxRi2P9LTFonmHkJLMOLjR77J1oIP8Ife1w==
"@prisma/engines@4.10.1":
version "4.10.1"
resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-4.10.1.tgz#c7062747f254e5d5fce98a8cae566c25f9f29fb2"
integrity sha512-B3tcTxjx196nuAu1GOTKO9cGPUgTFHYRdkPkTS4m5ptb2cejyBlH9X7GOfSt3xlI7p4zAJDshJP4JJivCg9ouA==
prisma@^4.10.1:
version "4.10.1"
resolved "https://registry.yarnpkg.com/prisma/-/prisma-4.10.1.tgz#88084695d7b364ae6bebf93d5006f84439c4e7d1"
integrity sha512-0jDxgg+DruB1kHVNlcspXQB9au62IFfVg9drkhzXudszHNUAQn0lVuu+T8np0uC2z1nKD5S3qPeCyR8u5YFLnA==
dependencies:
"@prisma/engines" "4.10.1"

View file

@ -1,27 +0,0 @@
# React Email Starter
A live preview right in your browser so you don't need to keep sending real emails during development.
## Getting Started
First, install the dependencies:
```sh
npm install
# or
yarn
```
Then, run the development server:
```sh
npm run dev
# or
yarn dev
```
Open [localhost:3000](http://localhost:3000) with your browser to see the result.
## License
MIT License

File diff suppressed because it is too large Load diff