🏗️ replace yarn with pnpm

Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
Sindre Kjelsrud 2024-04-26 14:26:00 +02:00
parent a1ab8a78f2
commit 303890c90b
Signed by untrusted user who does not match committer: sidski
GPG key ID: D2BBDF3EDE6BA9A6
6 changed files with 4196 additions and 4038 deletions

View file

@ -19,13 +19,15 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '21'
cache: 'yarn'
- name: Install pnpm
run: npm install -g @pnpm/exe
- name: Install dependencies
run: yarn install
run: pnpm install
- name: Build Astro website
run: yarn build
run: pnpm build
- name: Rsync files
uses: burnett01/rsync-deployments@5.2

View file

@ -39,9 +39,9 @@ Through this project, I've learned HTML, CSS, TypeScript coding, SSG/frameworks
## 🛠️ How do I run it locally?
1. Install the dependencies: `yarn`
1. Install the dependencies: `pnpm i`
2. Start the development server: `yarn dev`
2. Start the development server: `pnpm dev`
## 🎨 Color codes

View file

@ -7,7 +7,8 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"@astrojs/mdx": "^2.0.0",

4180
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load diff

7
pnpm-workspace.yaml Normal file
View file

@ -0,0 +1,7 @@
packages:
# include packages in subfolders (e.g. apps/ and packages/)
- "apps/**"
- 'packages/**'
# if required, exclude some directories
- '!**/test/**'

4032
yarn.lock

File diff suppressed because it is too large Load diff