Skip to content

Commit

Permalink
🐛 Fix issue where ConfigStore was not declared before use.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwir3 committed Sep 15, 2021
1 parent 831a3ce commit 7fc0195
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

<a name="0.1.7"></a>
## 0.1.7 (2021-09-15)

### Documentation and Copy Changes

- 📖 Update package.json and CHANGELOG.md. [[831a3ce](https://github.com/FoamFactory/shipout/commit/831a3ce43fa2e33e2078446e0e04c51f77a6f72d)]


<a name="0.1.6"></a>
## 0.1.6 (2021-09-15)

Expand Down
12 changes: 4 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,17 @@ export function CLIAsync(args, privateKey, isTestMode=false) {
prefix: '[' + `Main Process`.green + ']'
});

let configStore = new ConfigStore(path.resolve(workingDir), logger,
isTestMode);

if (isTestMode) {
Logger.setLevel('warning', true);
} else if (configStore.getIsVerboseMode()) {
Logger.setLevel('debug');
} else {
Logger.setLevel('info', true);
}

logger.debug("Creating ConfigStore with parameters: ",
path.resolve(workingDir), logger,
isTestMode);

let configStore = new ConfigStore(path.resolve(workingDir), logger,
isTestMode);


logger.info(`Shipout v${packageJson.version} initialized`);

let filePacker = new FilePacker(configStore);
Expand Down

0 comments on commit 7fc0195

Please sign in to comment.