-
Notifications
You must be signed in to change notification settings - Fork 0
fix: npx ccstat実行エラーを修正 #91
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
Conversation
- dist/index.jsの相対パス問題を修正 (../ui/ → ./ui/) - ESMインポートパスで.js拡張子不足を修正 - ディレクトリインポートでindex.js不足を修正 - scripts/fix-esm-imports.jsを改良して包括的な修正機能を追加 これによりnpx @ktny/ccstatでの実行が正常に動作 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. WalkthroughThe import-fixing logic in the Changes
Sequence Diagram(s)sequenceDiagram
participant fixImportsInFile
participant FileContent
fixImportsInFile->>FileContent: Read file content
fixImportsInFile->>FileContent: Add .js to ./ and ../ imports
fixImportsInFile->>FileContent: Append /index.js to directory imports
fixImportsInFile->>FileContent: Fix known import patterns (core, git, UI)
fixImportsInFile->>FileContent: Special-case fix for dist/index.js
fixImportsInFile->>FileContent: Remove duplicated .js.js
fixImportsInFile->>FileContent: Write updated content
Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
🎉 This PR is included in version 2.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
npmパッケージとして公開された
@ktny/ccstatをnpx経由で実行する際のESMインポートエラーを修正問題の詳細
dist/index.jsでの相対パス問題(../ui/→./ui/).js拡張子不足index.js不足修正内容
scripts/fix-esm-imports.jsを改良して包括的な修正機能を追加動作確認
✅
node dist/index.js --help- 正常に動作✅
node dist/index.js --hours 1- データ処理とタイムライン表示が正常Test plan
npx @ktny/ccstatでの実行が正常に動作する🤖 Generated with Claude Code
Summary by CodeRabbit