Permalink
Browse files

Get rid of FBism in `Config`

Summary: `cwd` was needed for FB-internal reasons, was untyped, and goes away.

Reviewed By: martinbigio

Differential Revision: D4986076

fbshipit-source-id: b093476cabc4f73fb63d37052f4041073c174f06
  • Loading branch information...
davidaurelio authored and facebook-github-bot committed May 3, 2017
1 parent 6a4e113 commit b9fb229c801e68d8736fc302c4ac7436769e5e56
Showing with 2 additions and 2 deletions.
  1. +2 −2 local-cli/util/Config.js
View
@@ -119,7 +119,7 @@ const Config = {
const configPath = findConfigPath(startDir);
return configPath
? this.loadFile(configPath, startDir)
: {...defaultConfig, cwd: startDir};
: {...defaultConfig};
},
loadFile(
@@ -131,7 +131,7 @@ const Config = {
require(pathToConfig) :
// $FlowFixMe nope
require(path.join(cwd, pathToConfig));
return {...defaultConfig, ...config, cwd};
return {...defaultConfig, ...config};
},
};

0 comments on commit b9fb229

Please sign in to comment.