@gravirei/reis 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/install.js +23 -16
- package/package.json +1 -1
package/lib/install.js
CHANGED
|
@@ -45,27 +45,34 @@ async function install() {
|
|
|
45
45
|
// Interactive mode - show prompt
|
|
46
46
|
console.log(chalk.white('This will install REIS files to ~/.rovodev/reis/\n'));
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
try {
|
|
49
|
+
// Prompt for confirmation
|
|
50
|
+
const { confirm } = await inquirer.prompt([
|
|
51
|
+
{
|
|
52
|
+
type: 'confirm',
|
|
53
|
+
name: 'confirm',
|
|
54
|
+
message: 'Continue with installation?',
|
|
55
|
+
default: true
|
|
56
|
+
}
|
|
57
|
+
]);
|
|
58
|
+
|
|
59
|
+
if (!confirm) {
|
|
60
|
+
console.log(chalk.yellow('\n✗ Installation cancelled'));
|
|
61
|
+
process.exit(0);
|
|
55
62
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
|
|
64
|
+
console.log('');
|
|
65
|
+
await performInstallation();
|
|
66
|
+
} catch (promptError) {
|
|
67
|
+
// inquirer failed (likely no TTY), install anyway
|
|
68
|
+
console.log(chalk.gray('No interactive terminal detected - installing automatically...\n'));
|
|
69
|
+
await performInstallation();
|
|
61
70
|
}
|
|
62
71
|
|
|
63
|
-
console.log('');
|
|
64
|
-
await performInstallation();
|
|
65
|
-
|
|
66
72
|
} catch (error) {
|
|
67
73
|
console.error(chalk.red('\n✗ Installation failed:'), error.message);
|
|
68
|
-
|
|
74
|
+
// Don't exit with error code - allow npm install to continue
|
|
75
|
+
console.log(chalk.yellow('Installation had issues but package is available.'));
|
|
69
76
|
}
|
|
70
77
|
}
|
|
71
78
|
|
package/package.json
CHANGED