Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Seeders path in config file ".mongooserc" #24

Closed
excalios opened this issue Dec 22, 2020 · 3 comments
Closed

Seeders path in config file ".mongooserc" #24

excalios opened this issue Dec 22, 2020 · 3 comments

Comments

@excalios
Copy link

What you are doing?

Initialize the mongoose-cli using mongoose init

using .mongooserc from readme

const path = require('path');

module.exports = {
  'config': path.resolve('config', 'database.json'),
  'models-path': path.resolve('db', 'models'),
  'seeders-path': path.resolve('db', 'seeders'),
  'migrations-path': path.resolve('db', 'migrations')
}

What do you expect to happen?

Setup the folders for migrations, seeders, etc

What is actually happening?

Error of:
Unknown arguments: seeders-path, seedersPath

I noticed looking at the code in the core/yargs code that it actually doesn't exist. If this is intentional please remove it from the readme thank you

Mongoosejs CLI version: Latest
Mongoose version: Latest

@waptik
Copy link
Owner

waptik commented Dec 22, 2020

Sorry, it wasn't left out intentionally.
I'll fix it and push a new version of the package by tomorrow same time.
Thanks for the notice.

UPDATE: I have patched the issue and released a new version.
I tested it and works for me.
Please try it out and lemme know if it works at your end.

@waptik waptik closed this as completed Dec 22, 2020
@excalios
Copy link
Author

The seeders-path config now works
Thank you for the update and fast response

@waptik
Copy link
Owner

waptik commented Dec 23, 2020

Sure no problem. Feel free to open a new issue if anything happens.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants