Repository navigation
fix: change import for process dependency - #11248
Conversation
gioboa
left a comment
There was a problem hiding this comment.
Thanks @yohannpoli for your help
Did you try this change with npm too?
|
@gioboa I don't have a project setup with TypeORM and npm right now. If you check other command, this is the same import type, and it's seem working with npm. If you have a ready environment, it would be nice if you can run the command for me, or i will test it this week end, i can't before. |
|
@gioboa How do you want me to try the fix, i need to make a release i think, no ? if i use the patch package dependency, it works, but this is not the same as building the library and test it |
gioboa
left a comment
There was a problem hiding this comment.
@yohannpoli Thanks for your commitment.
I think we can test this change during the review process, so I added this PR to our release board.
WalkthroughUpdated the import statement for the Node.js process module in src/commands/MigrationRunCommand.ts from a namespace import to a default import. No functional logic, behavior, or control flow was changed. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
🔇 Additional comments (1)
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 |
commit: |
PR Code Suggestions ✨No code suggestions found for the PR. |
gioboa
left a comment
There was a problem hiding this comment.
Thanks for your help @yohannpoli
|
It would be interesting to check the build, I would expect the code to transpiled the same way. I think we have synthetic default imports enabled in tsconfig, so I actually tend to prefer |
PR Code Suggestions ✨No code suggestions found for the PR. |
PR Code Suggestions ✨No code suggestions found for the PR. |
Using Deno, when i run the migration generate command, i got no error, when i use the migration run command, it fail because process.cwd is undefined, this is due to a bad import of the process dependency.
Description of change
I use the same syntax from the migration generate command for the process dependency (tested in local by patching the package) and it works after this change.
Pull-Request Checklist
masterbranchnpm run formatto apply prettier formattingnpm run testpasses with this changeFixes #0000Summary by CodeRabbit