All files / src/install-from-boilerplate/boilerplate menu-wrapper.js

0% Statements 0/11
0% Branches 0/4
100% Functions 0/0
0% Lines 0/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29                                                         
#!/usr/bin/env node
/**
 * Checks that dependencies are installed before launching the Spec-Up-T menu.
 */
 
const fs = require('node:fs');
const path = require('node:path');
 
if (!fs.existsSync('node_modules')) {
    console.error('\n⚠️  ERROR: node_modules directory not found.');
    console.error("   Please run 'npm install' first to install dependencies.\n");
    process.exit(1);
}
 
if (!fs.existsSync(path.join('node_modules', 'spec-up-t'))) {
    console.error('\n⚠️  ERROR: spec-up-t package not found in node_modules.');
    console.error("   Please run 'npm install' to install dependencies.\n");
    process.exit(1);
}
 
require(path.join(
    process.cwd(),
    'node_modules',
    'spec-up-t',
    'src',
    'install-from-boilerplate',
    'menu.js'
))(process.argv.slice(2));