Skip to content
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

fix: prevent create-type commands edge-case TypeErrors #6836

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

imnotjames
Copy link
Contributor

in some cases - where the connection options couldn't be read -
we would end up with the migration:create and similar commands
failing with a TypeError

this refactors the create commands a bit to defend against
an undefined directory, preventing the TypeError

fixes #6831

in some cases - where the connection options couldn't be read -
we would end up with the migration:create and similar commands
failing with a TypeError

this refactors the create commands a bit to defend against
an undefined directory, preventing the TypeError

fixes typeorm#6831
@imnotjames imnotjames force-pushed the fix/create-command-regressions branch from 8b993a6 to 976f9fe Compare October 2, 2020 17:55
@pleerock
Copy link
Member

pleerock commented Oct 6, 2020

Thank you! At some point we would need a test coverage for CLI commands.

@pleerock pleerock merged commit 08ec0a8 into typeorm:master Oct 6, 2020
@imnotjames imnotjames added the hacktoberfest-accepted label hacktoberfest label Oct 7, 2020
zaro pushed a commit to zaro/typeorm that referenced this pull request Jan 12, 2021
in some cases - where the connection options couldn't be read -
we would end up with the migration:create and similar commands
failing with a TypeError

this refactors the create commands a bit to defend against
an undefined directory, preventing the TypeError

fixes typeorm#6831
@imnotjames imnotjames deleted the fix/create-command-regressions branch June 21, 2021 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted label hacktoberfest
Projects
None yet
2 participants