Skip to content

Commit f010480

Browse files
committed
Migrate from yarn to pnpm
Replace yarn with pnpm as the package manager for better performance and more efficient disk space usage through content-addressable storage. Changes: - Replace yarn.lock with pnpm-lock.yaml - Update all Makefile commands to use pnpm instead of yarn - Update .gitignore to include pnpm-specific files - Add pnpm-debug.log* and .pnpm-store to .gitignore - Update clean target in Makefile to remove pnpm-lock.yaml All tests passing (61 tests across 5 test files). Build verified to work with pnpm.
1 parent eb794ea commit f010480

File tree

4 files changed

+3616
-3107
lines changed

4 files changed

+3616
-3107
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
pnpm-debug.log*
2425

2526
# TypeScript
2627
*.tsbuildinfo
28+
29+
# pnpm
30+
.pnpm-store

Makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,48 +18,49 @@ help:
1818

1919
# Install dependencies
2020
install:
21-
yarn install --frozen-lockfile
21+
pnpm install --frozen-lockfile
2222

2323
# Start Vite development server
2424
dev:
25-
yarn dev
25+
pnpm dev
2626

2727
# Alias for dev
2828
start: dev
2929

3030
# Run tests with Vitest
3131
test:
32-
yarn test --run
32+
pnpm test --run
3333

3434
# Run tests with Vitest UI
3535
test-ui:
36-
yarn test:ui
36+
pnpm test:ui
3737

3838
# Run tests with coverage
3939
test-coverage:
40-
yarn test:coverage --run
40+
pnpm test:coverage --run
4141

4242
# Build production bundle
4343
build:
44-
yarn build
44+
pnpm build
4545

4646
# Preview production build
4747
preview:
48-
yarn preview
48+
pnpm preview
4949

5050
# Check code formatting with Prettier
5151
lint:
52-
yarn prettier --check "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}"
52+
pnpm prettier --check "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}"
5353

5454
# Fix code formatting with Prettier
5555
lint-fix:
56-
yarn prettier --write "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}"
56+
pnpm prettier --write "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}"
5757

5858
# Clean build artifacts
5959
clean:
6060
rm -rf build
6161
rm -rf coverage
6262
rm -rf node_modules
63+
rm -f pnpm-lock.yaml
6364

6465
# Run all CI checks
6566
ci: test-coverage build lint

0 commit comments

Comments
 (0)