Skip to content

Commit bf0137c

Browse files
committed
chore: Migrate to pnpm
1 parent 0622acb commit bf0137c

15 files changed

Lines changed: 6971 additions & 1547 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,22 @@ jobs:
3131
fetch-depth: 0
3232
fetch-tags: true
3333

34-
- name: Setup bun
35-
uses: oven-sh/setup-bun@v2
34+
- name: Install pnpm
35+
uses: pnpm/action-setup@v4
3636
with:
37-
bun-version: "1.3.12"
37+
version: 10
3838

39-
- name: Setup Pages
40-
uses: actions/configure-pages@v5
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: "24.13.0"
43+
cache: "pnpm"
4144

4245
- name: Install dependencies
43-
run: bun install --frozen-lockfile
46+
run: pnpm i --frozen-lockfile
4447

4548
- name: Build project
46-
run: bun run build:release
49+
run: pnpm run build:release
4750

4851
- name: Upload artifact
4952
uses: actions/upload-pages-artifact@v4

.github/workflows/validate.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,27 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v6
10+
uses: actions/checkout@v4
1111

12-
- name: Setup bun
13-
uses: oven-sh/setup-bun@v2
12+
- name: Install pnpm
13+
uses: pnpm/action-setup@v4
1414
with:
15-
bun-version: "1.3.12"
15+
version: 10
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "24.13.0"
21+
cache: "pnpm"
1622

1723
- name: Install dependencies
18-
run: bun install --frozen-lockfile
24+
run: pnpm i --frozen-lockfile
1925

2026
- name: Run linter
21-
run: bun run lint
27+
run: pnpm run lint
2228

2329
- name: Run knip
24-
run: bun run knip:ci
30+
run: pnpm run knip:ci
2531

2632
- name: Build project
27-
run: bun run build
33+
run: pnpm run build

bun.lock

Lines changed: 0 additions & 1459 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { readdirSync } from "node:fs"
22

33
import prettyCozy from "@pretty-cozy/eslint-config"
44
import { defineConfig, globalIgnores } from "eslint/config"
5-
import checkFile from "eslint-plugin-check-file"
65

76
export default defineConfig(
87
prettyCozy.baseTs,
@@ -61,22 +60,6 @@ export default defineConfig(
6160
},
6261
},
6362

64-
{
65-
name: "local-rules/check-file-naming",
66-
plugins: { "check-file": checkFile },
67-
rules: {
68-
"check-file/folder-naming-convention": [
69-
"error",
70-
{ "*/**": "KEBAB_CASE" },
71-
],
72-
"check-file/filename-naming-convention": [
73-
"error",
74-
{ "*/**": "KEBAB_CASE" },
75-
{ ignoreMiddleExtensions: true },
76-
],
77-
},
78-
},
79-
8063
{
8164
settings: {
8265
"import-x/resolver": {

knip.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
"project": ["./**/*.{ts,tsx,js,mjs}"],
99
"paths": {
1010
"*": ["src/*"]
11-
},
12-
"ignoreDependencies": [".*eslint.*"]
11+
}
1312
}

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
"scripts": {
77
"dev": "vite",
88
"l10n:build": "lingui extract --clean --overwrite && lingui compile --strict",
9-
"build": "tsc -b && bun run l10n:build && vite build",
10-
"build:release": "bun ./scripts/build-release.ts",
11-
"publish": "bun ./scripts/publish.ts",
9+
"build": "tsc -b && pnpm run l10n:build && vite build",
10+
"build:release": "node ./scripts/build-release.ts",
11+
"publish": "node ./scripts/publish.ts",
1212
"preview": "vite preview",
1313
"knip": "knip",
1414
"knip:fix": "knip --fix-type exports,types",
1515
"knip:ci": "knip",
1616
"lint": "eslint .",
17-
"lint:fix": "bun run lint -- --fix",
18-
"lint:time": "TIMING=15 bun run lint",
17+
"lint:fix": "pnpm run lint -- --fix",
18+
"lint:time": "TIMING=15 pnpm run lint",
1919
"lint:inspect": "eslint --inspect-config",
20-
"validate": "bun run build && bun knip && bun lint",
21-
"analyze": "bunx vite-bundle-analyzer"
20+
"validate": "pnpm run build && pnpm run knip && pnpm run lint",
21+
"analyze": "analyze"
2222
},
2323
"dependencies": {
2424
"@floating-ui/react": "0.27.19",
@@ -53,14 +53,14 @@
5353
"@pretty-cozy/eslint-config": "0.9.0",
5454
"@pretty-cozy/release-tools": "0.9.0",
5555
"@tailwindcss/vite": "4.2.2",
56-
"@types/bun": "1.3.12",
5756
"@vitejs/plugin-react": "6.0.1",
5857
"eslint": "9.39.4",
5958
"knip": "6.4.1",
6059
"tailwindcss": "4.2.2",
6160
"tailwindcss-animate": "1.0.7",
6261
"typescript": "6.0.2",
63-
"vite": "8.0.8"
62+
"vite": "8.0.8",
63+
"vite-bundle-analyzer": "^1.3.7"
6464
},
6565
"overrides": {
6666
"@radix-ui/react-slot": "1.2.4",

0 commit comments

Comments
 (0)