Skip to content

Commit 906bc87

Browse files
chore: migrate to pnpm
1 parent 039c8eb commit 906bc87

20 files changed

+5458
-8129
lines changed

.eslintrc.json

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

.github/workflows/ci.yaml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: React Native CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [23.x]
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
with:
22+
run_install: false
23+
24+
- name: Get pnpm store directory
25+
shell: bash
26+
run: |
27+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
28+
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
34+
- name: Setup pnpm cache
35+
uses: actions/cache@v4
36+
with:
37+
path: ${{ env.STORE_PATH }}
38+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
39+
restore-keys: |
40+
${{ runner.os }}-pnpm-store-
41+
42+
- name: Install Dependencies
43+
run: pnpm install
44+
45+
- name: Run Linter
46+
run: pnpm lint
47+
48+
test:
49+
needs: lint
50+
runs-on: ubuntu-latest
51+
52+
strategy:
53+
matrix:
54+
node-version: [23.x]
55+
56+
steps:
57+
- name: Checkout
58+
uses: actions/checkout@v4
59+
60+
- name: Setup pnpm
61+
uses: pnpm/action-setup@v4
62+
with:
63+
run_install: false
64+
65+
- name: Get pnpm store directory
66+
shell: bash
67+
run: |
68+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
69+
70+
- name: Use Node.js ${{ matrix.node-version }}
71+
uses: actions/setup-node@v4
72+
with:
73+
node-version: ${{ matrix.node-version }}
74+
75+
- name: Setup pnpm cache
76+
uses: actions/cache@v4
77+
with:
78+
path: ${{ env.STORE_PATH }}
79+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
80+
restore-keys: |
81+
${{ runner.os }}-pnpm-store-
82+
83+
- name: Install Dependencies
84+
run: pnpm install
85+
86+
- name: Run Tests
87+
run: pnpm test:ci

.github/workflows/tests.yaml

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

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/commit-msg

100755100644
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
. "$(dirname "$0")/common.sh"
4-
5-
yarn commitlint --edit $1
1+
pnpm commitlint --edit

.husky/common.sh

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

.husky/pre-commit

100755100644
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
. "$(dirname "$0")/common.sh"
4-
5-
yarn lint-staged
1+
pnpm lint-staged

.husky/pre-push

100755100644
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn test:ci
1+
pnpm test:ci

.husky/prepare-commit-msg

100755100644
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
. "$(dirname "$0")/common.sh"
4-
5-
exec < /dev/tty && yarn cz --hook || true
1+
exec < /dev/tty && pnpm cz --hook || true

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

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

0 commit comments

Comments
 (0)