Skip to content

Commit c8e012c

Browse files
committed
chore: convert to pnpm
1 parent 1b66679 commit c8e012c

5 files changed

Lines changed: 5725 additions & 4514 deletions

File tree

.github/workflows/push.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ jobs:
1414
timeout-minutes: 5
1515

1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-node@v4
17+
- uses: actions/checkout@v5
18+
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
with:
22+
version: latest
23+
24+
- uses: actions/setup-node@v5
1925
with:
20-
cache: yarn
21-
node-version: 20
26+
cache: pnpm
27+
node-version: 22
2228

2329
- name: Install
24-
run: yarn install
30+
run: pnpm install
2531

2632
- name: Verify build
27-
run: yarn build
33+
run: pnpm build

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,3 @@ any of them:
119119
- Specifying the target attribute. For example, we could add a `targetAttr`
120120
setting to allow specifying which attribute to toggle.
121121
e.g. `targetAttr: "data-dark-mode"`.
122-
123-
## Developing
124-
125-
The easiest way to develop is using [`yalc`](https://github.com/wclr/yalc).
126-
127-
Install it globally and then from this repo do:
128-
129-
```
130-
yarn build
131-
yalc publish
132-
```
133-
134-
Then in your project that is using React Cosmos run:
135-
136-
```
137-
yalc add react-cosmos-dark-mode
138-
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"registry": "https://registry.npmjs.org"
4141
},
4242
"scripts": {
43-
"prepublishOnly": "yarn build",
43+
"prepublishOnly": "pnpm build",
4444
"build": "tsup --config tsup.index.config.ts && tsup --config tsup.fixture.config.ts",
4545
"release": "release-it"
4646
},

0 commit comments

Comments
 (0)