Skip to content

Commit 247dd37

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, #7, that just upgrades Yarn to the latest version.
1 parent 5bf10b1 commit 247dd37

6 files changed

Lines changed: 5131 additions & 4065 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@ jobs:
2222
uses: actions/setup-node@v6
2323
with:
2424
node-version: "24"
25-
cache: yarn
25+
cache: "pnpm"
26+
27+
- name: Install Corepack
28+
run: npm install -g corepack
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
@@ -42,13 +45,16 @@ jobs:
4245
uses: actions/setup-node@v6
4346
with:
4447
node-version: "24"
45-
cache: yarn
48+
cache: "pnpm"
49+
50+
- name: Install Corepack
51+
run: npm install -g corepack
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
@@ -62,10 +68,13 @@ jobs:
6268
uses: actions/setup-node@v6
6369
with:
6470
node-version: "24"
65-
cache: yarn
71+
cache: "pnpm"
72+
73+
- name: Install Corepack
74+
run: npm install -g corepack
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.0.0"
6364
}

0 commit comments

Comments
 (0)