-
Notifications
You must be signed in to change notification settings - Fork 0
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
yarn to bun #64
yarn to bun #64
Conversation
Walkthroughプロジェクトのビルドとテストのプロセスを改善するために、Node.jsのセットアップを"Bun"に置き換え、パッケージのインストールとビルドコマンドを更新しました。また、lintとtestのワークフローを最適化し、新しいグローバルパッケージを追加しました。これらの変更は、TypeScriptの型エラーを解決し、プロジェクトの開発効率を向上させることを目指しています。 Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 13
Configuration used: CodeRabbit UI
Files ignored due to path filters (4)
Screenshot.jpg
is excluded by:!**/*.jpg
package.json
is excluded by:!**/*.json
tsconfig.json
is excluded by:!**/*.json
yarn.lock
is excluded by:!**/*.lock
Files selected for processing (4)
- .github/wip-screenshot.yml (1 hunks)
- .github/workflows/lint-test.yml (1 hunks)
- .github/workflows/tag-on-push.yml (1 hunks)
- .github/workflows/upload-build-files.yml (1 hunks)
Additional comments: 4
.github/workflows/lint-test.yml (1)
- 14-15:
setup bun
の使用に切り替えられましたが、oven-sh/setup-bun@v1
のバージョン指定が正しいか確認してください。最新かつ安定したバージョンを使用することが推奨されます。.github/workflows/tag-on-push.yml (1)
- 18-19:
setup bun
の使用に切り替えられましたが、oven-sh/setup-bun@v1
のバージョン指定が最適かどうかを確認してください。最新かつ安定したバージョンの使用を確認することが重要です。.github/workflows/upload-build-files.yml (1)
- 25-26:
setup bun
の使用に切り替えられましたが、oven-sh/setup-bun@v1
のバージョン指定が最適かどうかを確認してください。最新かつ安定したバージョンの使用を確認することが重要です。.github/wip-screenshot.yml (1)
- 17-18:
setup bun
の使用に切り替えられましたが、oven-sh/setup-bun@v1
のバージョン指定が最適かどうかを確認してください。最新かつ安定したバージョンの使用を確認することが重要です。
- name: setup bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- run: npm i -g @antfu/ni |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm i -g @antfu/ni
の実行は、Bun を使用しているプロジェクトで npm コマンドを直接使用するのは一貫性がなく、混乱を招く可能性があります。bun install @antfu/ni
または ni
自体の Bun によるサポートを確認してください。
- name: install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: nci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
依存関係のインストールに nci
を使用することは、antfu/ni
を介して異なるパッケージマネージャー間でのコマンドの抽象化を意図していますが、Bun で直接 bun install
を使用することが推奨されます。nci
の使用は冗長かもしれません。
|
||
- name: lint | ||
run: yarn lint && yarn type-check | ||
run: nr lint && nr type-check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint と型チェックのコマンドが nr lint && nr type-check
に更新されました。nr
コマンドの使用は antfu/ni
に依存していますが、これらのタスクに Bun のネイティブコマンドを使用することも検討してください。また、コマンドの実行に失敗した場合にビルドが停止するように、&&
の代わりに ;
を使用することを検討してください。
|
||
- name: test | ||
run: yarn test | ||
run: nr test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
テストコマンドが nr test
に更新されました。ここでも、Bun のネイティブコマンドの使用を検討するか、antfu/ni
を介したコマンドの抽象化が適切かどうかを再評価してください。
- name: setup bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- run: npm i -g @antfu/ni |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm i -g @antfu/ni
の実行は、Bun を使用しているプロジェクトで npm コマンドを直接使用することの一貫性の欠如を示しています。bun install @antfu/ni
または ni
の Bun によるサポートを確認してください。
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: nci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
依存関係のインストールに nci
を使用することは、antfu/ni
を介して異なるパッケージマネージャー間でのコマンドの抽象化を意図していますが、Bun で直接 bun install
を使用することが推奨されます。nci
の使用は冗長かもしれません。
|
||
- name: Build Electron app | ||
run: yarn dist | ||
run: nr dist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Electron アプリのビルドコマンドが nr dist
に更新されました。ここでも、Bun のネイティブコマンドの使用を検討するか、antfu/ni
を介したコマンドの抽象化が適切かどうかを再評価してください。
- name: setup bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- run: npm i -g @antfu/ni |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm i -g @antfu/ni
の実行は、Bun を使用しているプロジェクトで npm コマンドを直接使用することの一貫性の欠如を示しています。bun install @antfu/ni
または ni
の Bun によるサポートを確認してください。
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: nci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
依存関係のインストールに nci
を使用することは、antfu/ni
を介して異なるパッケージマネージャー間でのコマンドの抽象化を意図していますが、Bun で直接 bun install
を使用することが推奨されます。nci
の使用は冗長かもしれません。
|
||
- name: Start web app (example using Vite) | ||
run: yarn dev & | ||
run: nr dev & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Web アプリを起動するコマンドが nr dev &
に更新されました。nr
コマンドの使用は antfu/ni
に依存していますが、このタスクに Bun のネイティブコマンドを使用することも検討してください。また、バックグラウンドで実行する場合は、適切なリソース管理を確認してください。
Summary by CodeRabbit