From 2dd089b1d105840c305177027b23e4573fc26239 Mon Sep 17 00:00:00 2001 From: frankpagan Date: Thu, 15 Jun 2023 19:58:56 -0600 Subject: [PATCH] fix: removed coc-check --- check-coc.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 check-coc.js diff --git a/check-coc.js b/check-coc.js deleted file mode 100644 index 8d1763d..0000000 --- a/check-coc.js +++ /dev/null @@ -1,16 +0,0 @@ -const { execSync } = require('child_process'); - -try { - // Try to run "coc" command - execSync('coc --version', { stdio: 'ignore' }); - console.log('"coc" is already installed globally.'); -} catch (error) { - // If "coc" command does not exist, install it globally - console.log('"coc" command not found. Installing globally...'); - try { - execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); - console.log('"coc" has been installed globally.'); - } catch (error) { - console.error('Failed to install "coc" globally:', error); - } -} \ No newline at end of file