Skip to content

Commit 8cc41fd

Browse files
committed
Migrate from yarn to pnpm
1 parent 285e540 commit 8cc41fd

File tree

7 files changed

+7193
-6253
lines changed

7 files changed

+7193
-6253
lines changed

.github/workflows/checks.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
11+
- uses: pnpm/action-setup@v2
1112
- uses: actions/setup-node@v4
1213
with:
13-
cache: yarn
14+
cache: pnpm
1415
node-version-file: .nvmrc
15-
- run: yarn --frozen-lockfile
16-
- run: yarn run format:check
17-
- run: yarn run lint
18-
- run: yarn run typecheck
19-
- run: yarn run build
20-
- run: yarn run check-size-limits
16+
- run: pnpm install --frozen-lockfile
17+
- run: pnpm run format:check
18+
- run: pnpm run lint
19+
- run: pnpm run typecheck
20+
- run: pnpm run build
21+
- run: pnpm run check-size-limits

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/pnpm-lock.yaml

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ RUN apk add tini
44

55
WORKDIR /home/node
66

7-
COPY package.json yarn.lock ./
8-
RUN yarn --frozen-lockfile
7+
COPY package.json pnpm-lock.yaml ./
8+
RUN pnpm install --frozen-lockfile
99

1010
COPY src ./src/
1111
COPY public ./public/
1212
COPY .browserslistrc babel.config.cjs postcss.config.cjs webpack.config.js ./
13-
RUN yarn run build
13+
RUN pnpm run build
1414

1515
ENV NODE_ENV=production PORT=8080
1616
EXPOSE $PORT
1717
USER node
1818
ENTRYPOINT ["tini", "--"]
19-
CMD ["yarn", "start"]
19+
CMD ["pnpm", "start"]

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,31 @@
55
Install packages:
66

77
```sh
8-
yarn
8+
pnpm install
99
```
1010

1111
## Development
1212

1313
Launch app in dev mode:
1414

1515
```sh
16-
yarn run dev
16+
pnpm run dev
1717
```
1818

1919
## Production
2020

2121
Build assets for production:
2222

2323
```sh
24-
yarn run build
24+
pnpm run build
2525
```
2626

2727
After that, you'll find all build artifacts in the build directory.
2828

2929
Then you need to start the built server:
3030

3131
```sh
32-
yarn start
32+
pnpm start
3333
```
3434

3535
# Docker

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"check-size-limits": "size-limit --highlight-less",
1515
"start": "node --enable-source-maps ."
1616
},
17+
"packageManager": "[email protected]+sha256.2df78e65d433d7693b9d3fbdaf431b2d96bb4f96a2ffecd51a50efe16e50a6a8",
1718
"dependencies": {
1819
"@babel/runtime": "^7.7.4",
1920
"@remix-run/router": "^1.0.3",
@@ -40,8 +41,10 @@
4041
"@faergeek/eslint-config": "^5.0.0",
4142
"@faergeek/make-webpack-config": "^22.0.0",
4243
"@size-limit/file": "^11.0.0",
44+
"@types/body-parser": "^1.19.5",
4345
"@types/express": "^4.17.12",
4446
"@types/morgan": "^1.9.3",
47+
"@types/react": "^18.2.48",
4548
"@types/react-dom": "^18.0.11",
4649
"@types/serialize-javascript": "^5.0.2",
4750
"browserslist": "^4.16.6",

0 commit comments

Comments
 (0)