Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pnpmを使う #2511

Merged
merged 15 commits into from
Jan 29, 2025
Merged

chore: pnpmを使う #2511

merged 15 commits into from
Jan 29, 2025

Conversation

sevenc-nanashi
Copy link
Member

内容

pnpmをつかうようにします。

関連 Issue

スクリーンショット・動画など

(なし)

その他

(なし)

@sevenc-nanashi sevenc-nanashi requested a review from a team as a code owner January 28, 2025 15:19
@sevenc-nanashi sevenc-nanashi requested review from Hiroshiba and removed request for a team January 28, 2025 15:19
vite.config.mts Outdated Show resolved Hide resolved
@voicevox-preview-pages
Copy link

voicevox-preview-pages bot commented Jan 28, 2025

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:94cd6c0

@sevenc-nanashi
Copy link
Member Author

ビルド中:https://github.com/sevenc-nanashi/voicevox/actions/runs/13014112763

@Hiroshiba Hiroshiba mentioned this pull request Jan 28, 2025
3 tasks
@Hiroshiba
Copy link
Member

macはビルドが(おそらく運悪く)落ちてるけど、ビルド済みパッケージはアップロードされてそう!
https://github.com/sevenc-nanashi/voicevox/releases/tag/0.23.0-preview-pnpm.0
試してみたいと思います!

@Hiroshiba
Copy link
Member

のチェック項目を全部試した感じ、全く問題なさそうでした!!!!!
pnpm置き換えられそう!!!!!

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

変更している箇所は問題なさそうなことを確認しました!
ほぼLGTMです!!!

あと変更漏れがなさそうかチェックしたいと思います(というメモ)

READMEの変更も必要そう!

あと何箇所かwarningが出てそう!(その箇所にコメントできない)
昔からあったワーニングがなぜか発動するようになった感じが・・・ 😇

Comment on lines +161 to +163
- name: Setup pnpm
uses: pnpm/action-setup@v4

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(このプルリクエストに関係ないですが)
あれ、この辺り.github/actions/setup-environment/action.yml使えば不要になる・・・?
なんで共通化してないんだろう。絶対理由があるはずだけど覚えてない。。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 おそらく、共通化したのがテストを速くするための目的で、ビルドも共通化することが目的ではなかったため

package.json Outdated Show resolved Hide resolved
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

macOSのインストーラー版とかも試してみた感じ、問題無さそうでした!!
自信を持って進めそう・・・!!

console.log使っちゃダメwarning出てるのは、no-consoleの対象範囲をsrcディレクトリ内に限定すればとりあえずOKな気がしてます!
(あとそれに伴ってoverrides内のno-console条件も変える感じで)

package.json Outdated Show resolved Hide resolved
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

たぶんあと一点だけ!
残しといていただければ後ほどこちらでやります🙏

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

一箇所だけ変更したあと、アナウンスissueを作ってマージしたいと思います!!

@@ -33,7 +32,8 @@
"electron:serve": "cross-env VITE_TARGET=electron vite",
"browser:serve": "cross-env VITE_TARGET=browser vite",
"browser:build": "cross-env VITE_TARGET=browser vite build",
"postinstall": "npm run postinstall:packages && npm run postinstall:download-scripts",
"preinstall": "npx -y only-allow pnpm",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 これにより間違えてnpm iしてしまった時にエラーが出る

README.md Outdated
Comment on lines 50 to 51
# 初回のみ
npm i -g pnpm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これは上のドキュメントと統合したらちょっと読みやすくなるかも?
ちょっとこっちで勝手にコミットします!

@Hiroshiba Hiroshiba changed the title Migrate: pnpmを使う chore: pnpmを使う Jan 29, 2025
@Hiroshiba Hiroshiba enabled auto-merge January 29, 2025 15:28
@Hiroshiba Hiroshiba added this pull request to the merge queue Jan 29, 2025
Merged via the queue into VOICEVOX:main with commit cffee01 Jan 29, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pnpmを使う
2 participants