Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
refactor: switch yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
kjxbyz committed Oct 23, 2023
1 parent 363b655 commit 3fd54c8
Show file tree
Hide file tree
Showing 17 changed files with 19,450 additions and 20,651 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: setup node
uses: actions/setup-node@v3
with:
Expand All @@ -52,14 +56,12 @@ jobs:
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install dependencies
run: |
yarn config set network-timeout 300000
yarn && yarn install:app
run: pnpm install

- name: copy files to @contentlayer/source-files
if: matrix.settings.platform == 'windows-latest'
run: |
copy fixed_pkg\makeCacheItemFromFilePath.js app\node_modules\@contentlayer\source-files\dist\fetchData\makeCacheItemFromFilePath.js
copy fixed_pkg\makeCacheItemFromFilePath.js node_modules\.pnpm\node_modules\@contentlayer\source-files\dist\fetchData\makeCacheItemFromFilePath.js
- uses: tauri-apps/tauri-action@v0
env:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/test-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,22 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: install dependencies
run: |
yarn config set network-timeout 300000
yarn && yarn install:app
run: pnpm install

- name: copy files to @contentlayer/source-files
if: matrix.platforms == 'windows-latest'
run: |
copy fixed_pkg\makeCacheItemFromFilePath.js app\node_modules\@contentlayer\source-files\dist\fetchData\makeCacheItemFromFilePath.js
copy fixed_pkg\makeCacheItemFromFilePath.js node_modules\.pnpm\node_modules\@contentlayer\source-files\dist\fetchData\makeCacheItemFromFilePath.js
- name: build app
run: yarn build:app
run: pnpm build:app
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
pnpm commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
pnpm lint-staged
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"./(app|docs)/**/*.{css,js,json,jsx,ts,tsx}": "yarn format"
"./(app|docs)/**/*.{css,js,json,jsx,ts,tsx}": "pnpm format"
}
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
registry=https://registry.yarnpkg.com/
registry=https://registry.npmjs.org/
1 change: 0 additions & 1 deletion app/.npmrc

This file was deleted.

5 changes: 4 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"focus-trap-react": "^10.2.3",
"framer-motion": "^10.16.4",
"leva": "0.9.35",
"ms": "^2.1.3",
"next": "13.5.6",
"next-contentlayer": "^0.3.4",
"next-intl": "^2.21.0",
Expand All @@ -33,12 +34,14 @@
"react-scripts": "5.0.1",
"react-wrap-balancer": "^1.1.0",
"rehype-slug": "^6.0.0",
"tsparticles": "^2.12.0"
"tsparticles": "^2.12.0",
"tsparticles-engine": "^2.12.0"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/line-clamp": "^0.4.4",
"@tailwindcss/typography": "^0.5.10",
"@types/ms": "^0.7.33",
"@types/node": "^18.18.6",
"@types/react": "^18.2.31",
"@types/react-dom": "^18.2.14",
Expand Down
13,024 changes: 0 additions & 13,024 deletions app/yarn.lock

This file was deleted.

1 change: 0 additions & 1 deletion docs/.npmrc

This file was deleted.

1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"react-wrap-balancer": "^1.1.0",
"rehype-slug": "^6.0.0",
"tsparticles": "^2.12.0",
"tsparticles-engine": "^2.12.0",
"use-debounce": "^9.0.4"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 3fd54c8

Please sign in to comment.