Skip to content

Conversation

@akiojin
Copy link
Owner

@akiojin akiojin commented Nov 18, 2025

Summary

pnpmを完全に削除し、npmに統一しました。これにより、ローカル開発環境とエンドユーザー環境で同じパッケージマネージャーを使用できるようになりました。

Changes

Removed Files

  • pnpm-lock.yaml - pnpmロックファイル
  • pnpm-workspace.yaml - pnpmワークスペース設定
  • .npmrc - pnpm workspace設定

Modified Files

  • package.json (root)

    • packageManagerフィールドを削除
    • pnpmセクションを削除
  • mcp-server/package.json

    • prepublishOnly: pnpm run test:cinpm run test:ci
    • test:nounity: pnpm run test:integrationnpm run test:integration
    • pnpmセクションを削除
  • README.md

    • すべてのpnpm install --frozen-lockfilenpm ci
    • pnpm build approvalの記述を削除
    • 各プラットフォーム(Windows/WSL/Docker/macOS)のインストール手順をnpmに統一
  • package-lock.json

    • npm installで生成(809パッケージ)

Verification

  • ✅ MCPサーバーが正常に起動(107個のハンドラー登録)
  • ✅ Unity接続確認
  • ✅ すべてのテストが合格(68 tests passed)
  • ✅ pre-push hooksが正常に実行

Benefits

  1. シンプル化: 1つのパッケージマネージャーに統一
  2. 混乱の解消: 開発環境(pnpm)と配布環境(npm/npx)の違いを解消
  3. 標準化: MCP配布の標準であるnpm/npxに統一

Impact on Users

  • ローカル開発者: npm installまたはnpm ciを使用
  • エンドユーザー: 引き続きnpx @akiojin/unity-mcp-server@latestで実行可能(変更なし)

🤖 Generated with Claude Code

Summary by CodeRabbit

リリースノート

  • Documentation

    • セットアップ・環境構築手順をpnpmからnpm中心の記載に更新しました(インストール・CI・ビルド手順の例を含む)。
  • Chores

    • パッケージマネージャー関連設定やワークスペース設定を削除・簡素化しました。
    • CI/CDワークフローとスクリプトをpnpm依存からnpm/npx互換へ切替えました。

- Remove pnpm-specific files (pnpm-lock.yaml, pnpm-workspace.yaml, .npmrc)
- Remove packageManager field from root package.json
- Remove pnpm-specific configuration from package.json files
- Update prepublishOnly script to use npm instead of pnpm
- Update README.md to replace pnpm commands with npm equivalents
- Generate package-lock.json and install dependencies with npm
- Verify MCP server starts successfully (107 handlers registered)

Reason: Simplify package management by using npm only, which is
standard for MCP server distribution and avoids confusion between
development (pnpm) and production (npm/npx) environments.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions bot enabled auto-merge November 18, 2025 07:47
@coderabbitai
Copy link

coderabbitai bot commented Nov 18, 2025

Warning

Rate limit exceeded

@akiojin has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 7 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 771c947 and 5c3ccf4.

📒 Files selected for processing (1)
  • mcp-server/package.json (1 hunks)

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

プロジェクトのパッケージマネージャーをpnpmからnpmへ移行する変更。リポジトリ内のpnpm固有設定・コマンドを削除し、README、CIワークフロー、パッケージ定義などをnpm/npx相当へ置換している。

Changes

Cohort / File(s) 変更の概要
パッケージマネージャー設定
\.npmrc``
workspaces=trueworkspaces-update=false を削除(npm workspaces 設定の除去)
パッケージ定義ファイル
\package.json`, `mcp-server/package.json``
packageManager フィールドと pnpm の onlyBuiltDependencies ブロックを削除;スクリプトの pnpm run ...npm run ... に置換(例: prepublishOnly, test:nounity 等)
pnpm ワークスペース設定
\pnpm-workspace.yaml``
packages リストや onlyBuiltDependencies エントリを削除(pnpm ワークスペース定義の削除)
ドキュメント
\README.md``
pnpm ベースの手順、Corepack や pnpm 固有の再構築/承認説明を削除し、npm / npm ci / npm rebuild 等のコマンドへ置換
CI / GitHub Actions
\.github/workflows/*.yml``
各ワークフローから pnpm セットアップを除去;pnpm install/pnpm cinpm ci に、pnpm execnpx に、pnpm キャッシュを npm キャッシュに変更

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant Dev as Developer
    participant Repo as Repository
    participant CI as GitHub Actions
    Note over Repo: 変更: pnpm -> npm
    Dev->>Repo: push changes (README, package.json, workflows)
    CI->>Repo: checkout
    CI->>CI: setup-node (cache: npm)
    CI->>CI: run `npm ci`
    CI->>CI: run tests via `npm run ...` / `npx ...`
    CI-->>Dev: build & publish steps using npm/npx
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • 注目箇所:
    • mcp-server/package.json のスクリプト変更が他ワークフローやリリース手順と一致しているか確認
    • CI ワークフロー(.github/workflows/*)でのコマンド引数やキャッシュ設定が正しく移行されているか
    • README 内の手順例(OS別コマンドやネイティブモジュールの再ビルド手順)が実際の開発環境と齟齬ないか

Possibly related PRs

Poem

🐰 パッケージの跡を辿り
pnpmの小道をそっと離れたよ
npmの草原で跳ねては確かめる
設定も手順も、新しい朝へ
ぴょん — うさぎの祝杯を一杯!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PRのタイトルは「chore: migrate from pnpm to npm for package management」で、pnpmからnpmへの移行という主要な変更を明確に要約しており、変更内容と完全に関連しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,6313 +0,0 @@
lockfileVersion: '9.0'

Choose a reason for hiding this comment

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

P1 Badge Preserve pnpm lockfile for existing CI workflows

Removing pnpm-lock.yaml means the CI workflows that still run pnpm install --frozen-lockfile (e.g. test.yml/release.yml/publish.yml) will now fail immediately, because pnpm requires an existing lockfile when --frozen-lockfile is passed. Any pipeline run that uses those jobs will error out before tests even execute. Keep the lockfile or update the workflows to npm so CI remains runnable.

Useful? React with 👍 / 👎.

- Remove pnpm setup steps from all workflows
- Replace pnpm install with npm ci
- Replace pnpm exec with npx
- Replace pnpm --filter with npm --workspace
- Update Node.js cache from pnpm to npm
- Remove pnpm-lock.yaml cache dependency paths

Affected workflows:
- lint.yml: markdownlint, eslint, prettier, commitlint
- test.yml: test:ci, test:ci:coverage, npm pack
- release.yml: pre-release tests, semantic-release
- publish.yml: test:ci, npm publish
- create-release.yml: semantic-release dry-run

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@akiojin
Copy link
Owner Author

akiojin commented Nov 18, 2025

All CI checks passed! ✅

Status:

  • ✅ Commit Message Lint - passed
  • ✅ Markdown, ESLint & Formatting - passed
  • ✅ Test & Coverage - passed
  • ✅ Package - passed
  • ✅ Auto Merge enabled

The PR is ready to merge once the base branch is up to date.

@github-actions github-actions bot merged commit 3f6f72a into develop Nov 18, 2025
6 checks passed
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

akiojin added a commit that referenced this pull request Nov 18, 2025
Complete the pnpm to npm migration by removing all pnpm references
from the Japanese README. This fixes the incomplete migration in PR #104.

Changes:
- Remove pnpm from requirements section
- Replace all pnpm install commands with npm ci
- Remove pnpm-specific build approval instructions
- Update Docker/Linux container instructions
- Update all environment-specific setup instructions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
akiojin pushed a commit that referenced this pull request Nov 18, 2025
## [2.40.2](v2.40.1...v2.40.2) (2025-11-18)

### Bug Fixes

* **docs:** remove remaining pnpm references from README.ja.md ([95fef1e](95fef1e)), closes [#104](#104)
@akiojin
Copy link
Owner Author

akiojin commented Nov 18, 2025

🎉 This PR is included in version 2.40.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants