Skip to content

Commit e119f36

Browse files
committed
build: migrate from npm to pnpm
- Add packageManager field to package.json for Corepack - Update GitHub Actions workflow to use pnpm/action-setup - Update CLAUDE.md commands documentation - Replace package-lock.json with pnpm-lock.yaml - Add .npmrc with 7-day minimum-version-age
1 parent c23f4a8 commit e119f36

6 files changed

Lines changed: 4605 additions & 6753 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23-
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
26+
2427
- name: Setup Node
2528
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2629
with:
2730
node-version: "20"
28-
cache: 'npm'
29-
31+
cache: 'pnpm'
32+
3033
- name: Install dependencies
31-
run: npm ci
32-
34+
run: pnpm install --frozen-lockfile
35+
3336
- name: Build
34-
run: npm run build
37+
run: pnpm run build
3538

3639
- name: Upload artifact
3740
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 7 days = 60 * 24 * 7 = 10080 minutes
2+
minimum-version-age=10080

CLAUDE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ A Linktree-style personal link collection site built with Next.js. Deployed as a
99
## Commands
1010

1111
```bash
12-
npm run dev # Start development server (http://localhost:3000)
13-
npm run build # Build for production (outputs to ./out)
14-
npm run lint # Run ESLint
15-
npm run format # Format code with Prettier
16-
npm run format:check # Check formatting without modifying
12+
pnpm dev # Start development server (http://localhost:3000)
13+
pnpm build # Build for production (outputs to ./out)
14+
pnpm lint # Run ESLint
15+
pnpm format # Format code with Prettier
16+
pnpm format:check # Check formatting without modifying
1717
```
1818

1919
## Architecture

0 commit comments

Comments
 (0)