refactor: replace fileURLToPath with import.meta.dirname#2366
refactor: replace fileURLToPath with import.meta.dirname#2366ghostdevv merged 1 commit intonpmx-dev:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThis pull request refactors path resolution logic across multiple TypeScript configuration and script files. The changes replace instances of Suggested reviewers
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
ghostdevv
left a comment
There was a problem hiding this comment.
good catch! I'm fairly confident this won't cause any issues, and nothing stands out as broken 🙏
🔗 Linked issue
N/A
🧭 Context
The codebase still had several module-relative filesystem paths built with
fileURLToPath(new URL(..., import.meta.url)). Since the project now targets Node.js 24.x, we can useimport.meta.dirnamedirectly for these filesystem path constants and simplify that pattern across scripts, config, and tests.📚 Description
This PR replaces module-relative path constants based on
fileURLToPath(new URL(...))withimport.meta.dirname-based path construction where the code is resolving local filesystem paths.