Skip to content

Commit 4e12a13

Browse files
committed
feat: initial pnpm installation
1 parent 119d7d4 commit 4e12a13

File tree

8 files changed

+17438
-16155
lines changed

8 files changed

+17438
-16155
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
.pnpm-store/
78

89
# testing
910
/coverage
@@ -23,6 +24,9 @@
2324
npm-debug.log*
2425
yarn-debug.log*
2526
yarn-error.log*
27+
.pnpm-debug.log
28+
29+
pnpm-lock.yaml.bak
2630

2731
# local env files
2832
.env*.local
@@ -60,4 +64,3 @@ src/data/crowdin/bucketsAwaitingReviewReport.csv
6064
# Storybook
6165
build-storybook.log
6266
storybook-static
63-

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ yarn.lock
44
package-lock.json
55
public
66
build
7+
pnpm-lock.yaml

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ git merge upstream/dev
7272

7373
2. Install dependencies
7474

75-
We recommend using a node manager to use multiple node versions in your system. We use [Volta](https://volta.sh/). In case you don't use a manager or you use `nvm`, you can check the currently supported versions under the `"volta"` section on our `package.json` file.
75+
We've upgraded to pnpm to speed up development experience and improve dependency management.
76+
77+
We recommend using a [node manager such as nvm](https://github.com/nvm-sh/nvm?tab=readme-ov-file#intro) to use multiple node versions in your system. We have a `.nvmrc` file that declares the canonical Node.js version for this project. If you use `nvm`, you can run `nvm use` to automatically switch to the correct version.
7678

7779
```sh
78-
yarn
80+
pnpm install
7981
```
8082

8183
### 4. Make awesome changes!
@@ -89,7 +91,7 @@ git checkout -b new_branch_name
8991
2. Start developing!
9092

9193
```sh
92-
yarn dev
94+
pnpm dev
9395
```
9496

9597
- Open this directory in your favorite text editor / IDE, and see your changes live by visiting `localhost:3000` from your browser

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
publish = ".next"
88

99
# Default build command.
10-
command = "yarn build"
10+
command = "pnpm build"
1111

1212
[build.environment]
1313
NEXT_FORCE_EDGE_IMAGES="true"

package.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"reading-time": "^1.5.0",
8484
"recharts": "^2.13.3",
8585
"remark-gfm": "^4.0.1",
86+
"sharp": "0.32.6",
8687
"swiper": "^11.1.10",
8788
"tailwind-merge": "^2.3.0",
8889
"tailwind-variants": "^0.2.1",
@@ -96,21 +97,22 @@
9697
"devDependencies": {
9798
"@chromatic-com/storybook": "1.5.0",
9899
"@netlify/plugin-nextjs": "^5.10.0",
99-
"@storybook/addon-essentials": "8.1.10",
100-
"@storybook/addon-interactions": "8.1.10",
101-
"@storybook/addon-links": "8.1.10",
102-
"@storybook/addon-themes": "8.1.10",
103-
"@storybook/nextjs": "^8.1.10",
104-
"@storybook/react": "8.1.10",
105-
"@storybook/test": "8.1.10",
100+
"@storybook/addon-essentials": "8.6.14",
101+
"@storybook/addon-interactions": "8.6.14",
102+
"@storybook/addon-links": "8.6.14",
103+
"@storybook/addon-themes": "8.6.14",
104+
"@storybook/manager-api": "8.6.14",
105+
"@storybook/nextjs": "^8.6.14",
106+
"@storybook/react": "8.6.14",
107+
"@storybook/test": "8.6.14",
108+
"@storybook/theming": "^8.6.14",
106109
"@svgr/webpack": "^8.1.0",
107110
"@types/decompress": "^4.2.7",
108111
"@types/hast": "^3.0.0",
109-
"@types/lodash.pick": "^4.4.9",
112+
"@types/mdast": "^4.0.4",
110113
"@types/node": "^20.4.2",
111114
"@types/react": "18.2.57",
112115
"@types/react-dom": "18.2.19",
113-
"@types/swiper": "^6.0.0",
114116
"@types/xml2js": "^0.4.14",
115117
"@typescript-eslint/eslint-plugin": "^6.19.0",
116118
"@typescript-eslint/parser": "^6.19.0",
@@ -126,7 +128,6 @@
126128
"husky": "^9.0.11",
127129
"image-size": "^1.0.2",
128130
"lint-staged": "^15.2.5",
129-
"lodash.pick": "^4.4.0",
130131
"mdast-util-toc": "^7.0.0",
131132
"minimist": "^1.2.8",
132133
"plaiceholder": "^3.0.0",
@@ -137,7 +138,7 @@
137138
"raw-loader": "^4.0.2",
138139
"rehype-slug": "^6.0.0",
139140
"remark-heading-id": "^1.0.1",
140-
"storybook": "8.1.10",
141+
"storybook": "8.6.14",
141142
"storybook-next-intl": "^1.2.5",
142143
"tailwindcss": "^3.4.4",
143144
"ts-node": "^10.9.1",
@@ -147,8 +148,5 @@
147148
"unist-util-visit": "^5.0.0",
148149
"xml2js": "^0.6.2"
149150
},
150-
"resolutions": {
151-
"jackspeak": "2.1.1",
152-
"sharp": "0.32.6"
153-
}
151+
"packageManager": "[email protected]+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
154152
}

0 commit comments

Comments
 (0)