lwazi 1.2.4 → 1.2.5
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/bin/uninstall.js +0 -34
- package/package.json +1 -1
package/bin/uninstall.js
CHANGED
|
@@ -89,40 +89,6 @@ try {
|
|
|
89
89
|
console.log(colors.yellow('⚠️ Uninstallation script finished with warnings.'));
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
} else {
|
|
93
|
-
// Unix-like systems (Linux, macOS, etc.)
|
|
94
|
-
scriptPath = path.join(lwaziDir, 'uninstall');
|
|
95
|
-
|
|
96
|
-
if (!fs.existsSync(scriptPath)) {
|
|
97
|
-
console.log(colors.yellow('⚠️ No Unix uninstall script found in lwazi directory.'));
|
|
98
|
-
console.log('Attempting manual cleanup...');
|
|
99
|
-
await manualCleanup();
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Make executable
|
|
104
|
-
fs.chmodSync(scriptPath, '755');
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
console.log(colors.blue('Running uninstallation script...'));
|
|
108
|
-
console.log();
|
|
109
|
-
|
|
110
|
-
try {
|
|
111
|
-
execSync(`"${scriptPath}"`, {
|
|
112
|
-
stdio: 'inherit',
|
|
113
|
-
cwd: projectRoot
|
|
114
|
-
});
|
|
115
|
-
console.log();
|
|
116
|
-
console.log(colors.green('✅ Uninstallation completed!'));
|
|
117
|
-
} catch (error) {
|
|
118
|
-
if (error.status === 1) {
|
|
119
|
-
console.log();
|
|
120
|
-
console.log(colors.yellow('⚠️ Uninstallation cancelled by user.'));
|
|
121
|
-
} else {
|
|
122
|
-
console.log();
|
|
123
|
-
console.log(colors.yellow('⚠️ Uninstallation script finished with warnings.'));
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
92
|
|
|
127
93
|
function manualCleanup() {
|
|
128
94
|
console.log(colors.blue('Performing manual cleanup...'));
|