Skip to content

Commit

Permalink
Adds tool instalation to the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
darielnoel committed Oct 29, 2024
1 parent 43700f1 commit 2f3840e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xscripts/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,13 @@ function isKaibanJSInstalled() {

// Function to install KaibanJS
function installKaibanJS() {
const spinner = ora('Installing KaibanJS...').start();
const spinner = ora('Installing KaibanJS and tools...').start();
try {
execSync('npm install kaibanjs --legacy-peer-deps', { stdio: 'inherit' });
spinner.succeed('KaibanJS installed successfully.');
execSync('npm install kaibanjs @kaibanjs/tools --legacy-peer-deps', { stdio: 'inherit' });
spinner.succeed('KaibanJS and tools installed successfully.');
} catch (error) {
spinner.fail('Failed to install KaibanJS.');
console.error(chalk.red('Error installing KaibanJS:'), error);
spinner.fail('Failed to install KaibanJS and tools.');
console.error(chalk.red('Error installing packages:'), error);
process.exit(1);
}
}
Expand Down

0 comments on commit 2f3840e

Please sign in to comment.