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
[Bug] Root Param should be respected in OrmConfig file #63
Comments
Hi @johannesschobel unfortunately you have to use the |
And what is the correct way to set |
Same here! |
Same here, the doc is not in sync with how it works currently. |
Dear @hirsch88 ,
today i tried to add your library to my existing project in order to provide respective seeding functionality.
For the context, please note that i use a mono-repository with
nrwl/nx
. I have a few applications (all stored inapps/
folder of my project root), whereas one is aNestJS API
. The latter usesTypeORM
with anormconfig.js
file and your library.However, when i want to run the commands, i have to set the additional
--root
parameter, because myormconfig.js
file is not stored in theroot
folder of the mono-repository, but in the specific application folder (e.g.,apps/api/src/ormconfig.js
).My
apps/api/src/ormconfig.js
file looks like this:However, because i need to call the seeder command with
--root
param, i expected theseeds
parameter to prepend respectiveroot
path. For example, the path should beapps/api/src/my/custom/path/to/seeds/*.ts
.Not sure, if i did something wrong, but my seeds were not properly found. If i entered the full path (relative to the root folder of the project itself) it worked out!
All the best
The text was updated successfully, but these errors were encountered: