Skip to content

Commit 0a7fcc8

Browse files
committed
update: yarn references to use pnpm
1 parent 649a156 commit 0a7fcc8

File tree

9 files changed

+13
-19
lines changed

9 files changed

+13
-19
lines changed

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies 📦":
1313
- package.json
1414
- yarn.lock
15+
- pnpm-lock.yaml
1516

1617
"config ⚙️":
1718
- i18n.config.json

.github/workflows/chromatic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
fetch-depth: 0 # 👈 Required to retrieve git history
3434
- name: Install deps
3535
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
36-
run: yarn
36+
run: pnpm
3737
- name: Publish to Chromatic
3838
# 👇 Adds Chromatic as a step in the workflow
3939
uses: chromaui/action@v1

.storybook/main.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@ import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
44
import type { StorybookConfig } from "@storybook/nextjs"
55

66
/**
7-
* Note regarding package.json settings related to Storybook:
8-
*
9-
* There is a resolutions option set for the package `jackspeak`. This is related to a
10-
* workaround provided to make sure storybook ( as of v7.5.2) works correctly with
11-
* Yarn v1
12-
*
13-
* Reference: https://github.com/storybookjs/storybook/issues/22431#issuecomment-1630086092
14-
*
15-
* The primary recommendation is to upgrade to Yarn 3 if possible
7+
* Storybook configuration for the ethereum.org website
8+
* This loads our components as stories and configures the necessary
9+
* webpack settings for proper rendering
1610
*/
17-
1811
const config: StorybookConfig = {
1912
stories: [
2013
"../src/components/**/*.stories.{ts,tsx}",

docs/applying-storybook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Check out [Intro to Storybook](https://storybook.js.org/tutorials/intro-to-story
1414

1515
## Spinning up the Storybook server
1616

17-
It's as easy as running `yarn storybook` to boot up a dedicated localhost to see all the components that have stories.
17+
It's as easy as running `pnpm storybook` to boot up a dedicated localhost to see all the components that have stories.
1818

1919
## Setting up a component's stories
2020

docs/locales-process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Locales generation process
22

3-
Every time `yarn build` or `yarn start` is executed, the following process is
3+
Every time `pnpm build` or `pnpm start` is executed, the following process is
44
going to be triggered as well:
55

66
<img src="./locales.png">

docs/stack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The ethereum.org website stack
22

33
- [Node.js](https://nodejs.org/)
4-
- [Yarn package manager](https://yarnpkg.com/cli/install)
4+
- [pnpm](https://pnpm.io/) - Fast, disk space efficient package manager
55
- [NextJS](https://nextjs.org/)
66
- React framework that provides some goodies out of the box (pages router, SSG, SSR, i18n support, Image component, etc)
77
- Configurable in `next.config.js`

src/scripts/crowdin-import.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const argv = require("minimist")(process.argv.slice(2))
2626
******************************/
2727

2828
/**
29-
* 1. Run `yarn crowdin-clean` to initialize fresh ./.crowdin folder. This can also be used to erase contents when finished.
29+
* 1. Run `pnpm crowdin-clean` to initialize fresh ./.crowdin folder. This can also be used to erase contents when finished.
3030
*
3131
* 2a. Export/import CSV of languages ready for review:
3232
* 1. Open "Website translation board" document in ethereum.org Notion (internal only)
@@ -45,7 +45,7 @@ const argv = require("minimist")(process.argv.slice(2))
4545
* ie. `es: [1, 10],` would import the "Homepage" and "Learn" buckets for Spanish
4646
* 2. Save file without committing*
4747
*
48-
* Optionally: To view summary of buckets from CSV, run `yarn crowdin-import --buckets` or `yarn crowdin-import -b`
48+
* Optionally: To view summary of buckets from CSV, run `pnpm crowdin-import --buckets` or `pnpm crowdin-import -b`
4949
* Any items in USER_OVERRIDE will override the CSV import
5050
*
5151
* 3. Export translated content from Crowdin and import into ./.crowdin folder:
@@ -54,7 +54,7 @@ const argv = require("minimist")(process.argv.slice(2))
5454
* ie. ./.crowdin/{lang-codes}
5555
*
5656
* 4. Execute script:
57-
* 1. Execute script by running `yarn crowdin-import`
57+
* 1. Execute script by running `pnpm crowdin-import`
5858
* 2. If successful, copy `BUILD_LOCALES={langs}` output and paste in
5959
* your `.env`, then build site to test results.
6060
*

src/scripts/crowdin/reports/generateReviewReport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type SummaryItem = [code: string, bucket: string, needsReview: number]
1919
* 4. Select "Translation Status" under "Projects" for scope
2020
* 5. Click: "Create" and authenticate
2121
* 6. Copy the token to the .env file
22-
* - Can be run with `yarn crowdin-needs-review`
22+
* - Can be run with `pnpm crowdin-needs-review`
2323
* - Results are saved to src/data/crowdin/bucketsAwaitingReviewReport.csv
2424
* - Report is git ignored, and should not be committed
2525
*/

src/scripts/updatePublishDate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Intended to be run as a `preversion` lifecycle hook as part of `yarn version`
3+
# Intended to be run as a `preversion` lifecycle hook as part of `pnpm version`
44
# 1. Update `published.json` file with the current date (UTC)
55
echo "{\"date\":\"$(date -u +%Y-%m-%d)\"}" > src/data/published.json
66
# 2. Stage changes before being committed during `version` lifecycle hook

0 commit comments

Comments
 (0)