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

Feat: Support async ormconfig (Feature request) #60

Closed
jaynish-zen opened this issue Apr 24, 2020 · 1 comment
Closed

Feat: Support async ormconfig (Feature request) #60

jaynish-zen opened this issue Apr 24, 2020 · 1 comment

Comments

@jaynish-zen
Copy link

Typeform currently supports async ormconfig. It would be good to have it in this library.

You can check it here:
typeorm/typeorm#5048

@wwasowicz
Copy link

That works or me

typeorm.ts

export = (async () => {
    return  {
      type: '',
      schema: ''
    };
})();

package.json
"seed": "ts-node -r tsconfig-paths/register ./node_modules/typeorm-seeding/dist/cli.js -n ormconfig.ts",

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

No branches or pull requests

3 participants