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

cli options not part of DataSourceOptions type #8783

Closed
vdhpieter opened this issue Mar 23, 2022 · 4 comments
Closed

cli options not part of DataSourceOptions type #8783

vdhpieter opened this issue Mar 23, 2022 · 4 comments

Comments

@vdhpieter
Copy link

Issue Description

Expected Behavior

There is a clear way documented to set CLI options such as entity directory.

Actual Behavior

All the documentation mentions adding this to the DataSourceOptions

cli: {
      "entitiesDir": "src/entity",
      "migrationsDir": "src/migration",
      "subscribersDir": "src/subscriber"
   }

But the type won't allow it

My Environment

Dependency Version
Operating System MacOS 12.3
Node.js version 16.5.0
Typescript version 4.6.2
TypeORM version 0.3.2

Are you willing to resolve this issue by submitting a Pull Request?

  • ✖️ Yes, I have the time, and I know how to start.
  • ✅ Yes, I have the time, but I don't know how to start. I would need guidance.
  • ✖️ No, I don’t have the time, but I can support (using donations) development.
  • ✖️ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
@Oatelaus
Copy link

@vdhpieter I came across this as I'm setting up TypeORM currently #8762 (comment)

I think this relates. Sorry if not.

@pleerock
Copy link
Member

cli option was removed as it was answered in #8762 (comment) . Now you need to specify path to exported data source definition in your code using -d option.

If you are willing to contribute - we need to update the CLI documentation.

@gavin-c-tcg
Copy link

how to custome migrationsDir ???

@pleerock
Copy link
Member

Closing, see #8810 for more details.

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

No branches or pull requests

4 participants