Skip to content

Commit

Permalink
fix() remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Sep 19, 2019
1 parent 989eef8 commit 01d08c6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/sub-app/sub-app.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,22 +88,18 @@ function transform(options: SubAppOptions): SubAppOptions {
}

function isMonorepo(host: Tree) {
console.log('??');
const nestFileExists = host.exists('nest.json');
const nestCliFileExists = host.exists('nest-cli.json');
if (!nestFileExists && !nestCliFileExists) {
return false;
}
console.log('exists?');
const filename = nestCliFileExists ? 'nest-cli.json' : 'nest.json';
const source = host.read(filename);
if (!source) {
console.log('no srouce');
return false;
}
const sourceText = source.toString('utf-8');
const optionsObj = parseJson(sourceText) as Record<string, any>;
console.log(optionsObj);
return !!optionsObj.monorepo;
}

Expand Down

0 comments on commit 01d08c6

Please sign in to comment.