Skip to content

Commit

Permalink
Fix path shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
about-code committed Aug 26, 2023
1 parent dd7f045 commit 2ce47ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/model/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export function getRuntimeConfig(conf) {
}
// Resolve baseDir relative to config file src directory
// Resolve outDir relative to baseDir.
_conf.baseDir = path.resolve(conf.srcDir, conf.baseDir);
_conf.outDir = path.resolve(_conf.baseDir, conf.outDir);
_conf.baseDir = toForwardSlash(path.resolve(conf.srcDir, conf.baseDir));
_conf.outDir = toForwardSlash(path.resolve(_conf.baseDir, conf.outDir));

console.log(`☛ Reading from: ${_conf.baseDir}`);
console.log(`☛ Writing to: ${_conf.outDir}\n`);
Expand All @@ -117,7 +117,7 @@ export function getRuntimeConfig(conf) {
_conf.generateFiles.listOf.push(conf.generateFiles.listOfTables);
}
if (_conf.unified.rcPath) {
_conf.unified.rcPath = toForwardSlash(path.resolve(conf.baseDir, conf.unified.rcPath));
_conf.unified.rcPath = toForwardSlash(path.resolve(_conf.baseDir, conf.unified.rcPath));
}

validateRuntimeConfig(_conf);
Expand Down

0 comments on commit 2ce47ca

Please sign in to comment.