mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
revert(global-cli): is installed globally (#2925)
This commit is contained in:
committed by
GitHub
parent
6268659f80
commit
e413dcd0d8
@@ -3,7 +3,6 @@ const cp = require('child_process');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const chalk = require('chalk');
|
||||
const isInstalledGlobally = require('is-installed-globally');
|
||||
|
||||
/**
|
||||
* @param {string} msg
|
||||
@@ -15,15 +14,6 @@ function log(msg) {
|
||||
function main([_$0, _detox, ...cliArgs]) {
|
||||
const [command] = cliArgs;
|
||||
|
||||
if (process.platform !== 'win32' && !isInstalledGlobally) {
|
||||
log('Error: "detox-cli" package is not meant to be installed locally, exiting...');
|
||||
log('HINT: Remove the local installation and reinstall it globally:');
|
||||
log(' npm uninstall detox-cli');
|
||||
log(' npm install -g detox-cli\n');
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (command === 'recorder' && process.platform === 'darwin') {
|
||||
return spawnRecorder(cliArgs);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user