Skip to content

Commit b00c551

Browse files
committed
Switch to pnpm
Yarn v1 is unmaintained, deprecated and full of bugs. styled-components main repo uses pnpm. So there we go! Note: There's an alternative PR, #204, that just upgrades Yarn to the latest version. Note: Clean migration from yarn.lock lockfile was not possible and it had to be recreated. Therefore, this PR comes with minor dependency differences. As a result, minor formatting changes were also introduced to make lint pass.
1 parent 5bf10b1 commit b00c551

8 files changed

Lines changed: 5147 additions & 4068 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v6
2020

21+
- name: Use pnpm
22+
uses: pnpm/action-setup@v4
23+
2124
- name: Use Node.js
2225
uses: actions/setup-node@v6
2326
with:
2427
node-version: "24"
25-
cache: yarn
28+
cache: "pnpm"
2629

2730
- name: Install dependencies
28-
run: yarn install --frozen-lockfile
31+
run: pnpm install --frozen-lockfile
2932

3033
- name: Run lint
31-
run: yarn lint
34+
run: pnpm lint
3235

3336
unit:
3437
name: Unit tests
@@ -38,17 +41,20 @@ jobs:
3841
- name: Checkout
3942
uses: actions/checkout@v6
4043

44+
- name: Use pnpm
45+
uses: pnpm/action-setup@v4
46+
4147
- name: Use Node.js
4248
uses: actions/setup-node@v6
4349
with:
4450
node-version: "24"
45-
cache: yarn
51+
cache: "pnpm"
4652

4753
- name: Install dependencies
48-
run: yarn install --frozen-lockfile
54+
run: pnpm install --frozen-lockfile
4955

5056
- name: Run tests
51-
run: yarn test
57+
run: pnpm test
5258

5359
build:
5460
name: Build
@@ -58,14 +64,17 @@ jobs:
5864
- name: Checkout
5965
uses: actions/checkout@v6
6066

67+
- name: Use pnpm
68+
uses: pnpm/action-setup@v4
69+
6170
- name: Use Node.js
6271
uses: actions/setup-node@v6
6372
with:
6473
node-version: "24"
65-
cache: yarn
74+
cache: "pnpm"
6675

6776
- name: Install dependencies
68-
run: yarn install --frozen-lockfile
77+
run: pnpm install --frozen-lockfile
6978

7079
- name: Run build
71-
run: yarn build
80+
run: pnpm build

.gitignore

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# OS
12
.DS_Store
2-
/node_modules
3+
4+
# Cache
5+
.cache
6+
.tmp
7+
.eslintcache
8+
9+
# Project-generated directories and files
10+
coverage
11+
dist
12+
node_modules
13+
playwright-report
14+
test-results
15+
package.tgz
16+
17+
# Logs
18+
logs
19+
npm-debug.log
20+
21+
# Built files
322
/index.js
23+

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Contributing to css-to-react-native
2+
3+
## Prerequisites
4+
5+
- [Node.js](https://nodejs.org) 20.0 or later
6+
- [Corepack](https://github.com/nodejs/corepack)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@
5959
"eslint --fix",
6060
"git add"
6161
]
62-
}
62+
},
63+
"packageManager": "pnpm@10.32.1"
6364
}

0 commit comments

Comments
 (0)