fix(nx): global cli warning false positives

This commit is contained in:
Victor Savkin 2019-07-30 03:41:13 -04:00
parent 790f1748d2
commit d3dc2f4647
2 changed files with 2 additions and 5 deletions

View File

@ -77,7 +77,6 @@ Before you submit an issue, please search the issue tracker. An issue for your p
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. Having a reproducible scenario gives us wealth of important information without going back and forth with you requiring additional information, such as:
- version of Nx used
- `workspace.json` or `angular.json` configuration
- `yarn.lock` or `package-lock.json`
- and most importantly - a use-case that fails

View File

@ -59,9 +59,7 @@ if (workspace) {
if (w) {
require(path.join(w.dir, 'node_modules', '@nrwl', 'cli', 'bin', 'nx.js'));
} else {
console.error(
`Error: The current directory isn't part of an Nx workspace.`
);
process.exit(1);
console.log(`The current directory isn't part of an Nx workspace.`);
process.exit(0);
}
}