Skip to content

Commit

Permalink
fix: cli should accept absolute paths for --config
Browse files Browse the repository at this point in the history
  • Loading branch information
aaabramov committed Oct 21, 2021
1 parent 9f14e48 commit 4ad3a61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connection/ConnectionOptionsReader.ts
@@ -1,4 +1,5 @@
import appRootPath from "app-root-path";
import path from "path";
import {ConnectionOptions} from "./ConnectionOptions";
import {PlatformTools} from "../platform/PlatformTools";
import {ConnectionOptionsEnvReader} from "./options-reader/ConnectionOptionsEnvReader";
Expand Down Expand Up @@ -193,7 +194,7 @@ export class ConnectionOptionsReader {
* Gets directory where configuration file should be located and configuration file name.
*/
protected get baseFilePath(): string {
return this.baseDirectory + "/" + this.baseConfigName;
return path.resolve(this.baseDirectory, this.baseConfigName);
}

/**
Expand Down

0 comments on commit 4ad3a61

Please sign in to comment.