add warning if running outside.
This commit is contained in:
parent
2c3a402f51
commit
8bc608581c
1
react-native-pushy-cli/cli.js
vendored
1
react-native-pushy-cli/cli.js
vendored
@ -46,6 +46,7 @@ if (fs.existsSync(cliPath)) {
|
|||||||
if (cli) {
|
if (cli) {
|
||||||
cli.run();
|
cli.run();
|
||||||
} else {
|
} else {
|
||||||
|
console.error('Are you at home directory of a react-native project?');
|
||||||
console.error('`pushy install` is under development, please run `npm install react-native-pushy` to install pushy manually.');
|
console.error('`pushy install` is under development, please run `npm install react-native-pushy` to install pushy manually.');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user