Fix config path resolution
This commit is contained in:
parent
00685bb7e9
commit
4163b7deb9
|
@ -12,7 +12,7 @@ const chalk = require("chalk");
|
|||
let argv = yargs.argv;
|
||||
let [ configurationPath, task, item ] = argv._;
|
||||
|
||||
let absoluteConfigurationPath = path.join(process.cwd(), configurationPath);
|
||||
let absoluteConfigurationPath = path.resolve(process.cwd(), configurationPath);
|
||||
let configuration = require(absoluteConfigurationPath);
|
||||
|
||||
return Promise.try(() => {
|
||||
|
|
2
bin/run
2
bin/run
|
@ -17,7 +17,7 @@ let configurationPath = argv._[0];
|
|||
let listenHost = argv.listenHost ?? "127.0.0.1";
|
||||
let listenPort = argv.listenPort ?? 3131;
|
||||
|
||||
let absoluteConfigurationPath = path.join(process.cwd(), configurationPath);
|
||||
let absoluteConfigurationPath = path.resolve(process.cwd(), configurationPath);
|
||||
let configuration = require(absoluteConfigurationPath);
|
||||
|
||||
return Promise.try(() => {
|
||||
|
|
|
@ -38,7 +38,7 @@ let configurationPath = argv._[0];
|
|||
let listenHost = argv.listenHost ?? "127.0.0.1";
|
||||
let listenPort = argv.listenPort ?? 3000;
|
||||
|
||||
let absoluteConfigurationPath = path.join(process.cwd(), configurationPath);
|
||||
let absoluteConfigurationPath = path.resolve(process.cwd(), configurationPath);
|
||||
let configuration = require(absoluteConfigurationPath);
|
||||
|
||||
return Promise.try(() => {
|
||||
|
|
|
@ -12,7 +12,7 @@ const chalk = require("chalk");
|
|||
let argv = yargs.argv;
|
||||
let [ configurationPath, task, item ] = argv._;
|
||||
|
||||
let absoluteConfigurationPath = path.join(process.cwd(), configurationPath);
|
||||
let absoluteConfigurationPath = path.resolve(process.cwd(), configurationPath);
|
||||
let configuration = require(absoluteConfigurationPath);
|
||||
|
||||
return Promise.try(() => {
|
||||
|
|
Loading…
Reference in a new issue