Skip to content

Commit

Permalink
fix: support ormconfig as json format (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a authored Mar 28, 2020
1 parent abf4bab commit 32da7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection/ConnectionOptionsReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class ConnectionOptionsReader {
connectionOptions = await mod.default;

} else if (foundFileFormat === "json") {
connectionOptions = PlatformTools.load(configFile);
connectionOptions = await import(configFile);

} else if (foundFileFormat === "yml") {
connectionOptions = new ConnectionOptionsYmlReader().read(configFile);
Expand Down

0 comments on commit 32da7d7

Please sign in to comment.