nubos-pilot 0.5.1 → 0.5.2
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/install.js +5 -3
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -166,7 +166,7 @@ function _writeToolsShim(projectRoot) {
|
|
|
166
166
|
+ ' process.stderr.write("nubos-pilot: tool binary fehlt unter " + TARGET + "\\nFix: npx nubos-pilot@latest update\\n");\n'
|
|
167
167
|
+ ' process.exit(1);\n'
|
|
168
168
|
+ '}\n'
|
|
169
|
-
+ 'require(TARGET);\n';
|
|
169
|
+
+ 'require(TARGET).main();\n';
|
|
170
170
|
fs.mkdirSync(shimDir, { recursive: true });
|
|
171
171
|
atomicWriteFileSync(shimPath, body);
|
|
172
172
|
try { fs.chmodSync(shimPath, 0o755); } catch {}
|
|
@@ -681,8 +681,10 @@ async function main() {
|
|
|
681
681
|
return await runInstall({ cwd, mode: detectMode(cwd), flags });
|
|
682
682
|
case '--dry-run':
|
|
683
683
|
return await runInstall({ cwd, mode: detectMode(cwd), dryRun: true, flags });
|
|
684
|
-
case 'update':
|
|
685
|
-
|
|
684
|
+
case 'update': {
|
|
685
|
+
const detected = detectMode(cwd);
|
|
686
|
+
return await runInstall({ cwd, mode: detected === 'init' ? 'init' : 'update', flags });
|
|
687
|
+
}
|
|
686
688
|
case 'uninstall':
|
|
687
689
|
return await runUninstall({ cwd, args: rest.slice(1) });
|
|
688
690
|
case 'doctor': {
|