ropilot 0.1.16 → 0.1.17
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/setup.js +16 -2
- package/package.json +1 -1
package/lib/setup.js
CHANGED
|
@@ -420,7 +420,10 @@ export async function init(providedApiKey = null) {
|
|
|
420
420
|
* Update prompts to latest version
|
|
421
421
|
*/
|
|
422
422
|
export async function update() {
|
|
423
|
-
console.log('
|
|
423
|
+
console.log('');
|
|
424
|
+
console.log('Updating Ropilot...');
|
|
425
|
+
console.log('===================');
|
|
426
|
+
console.log('');
|
|
424
427
|
|
|
425
428
|
const apiKey = getApiKey();
|
|
426
429
|
if (!apiKey) {
|
|
@@ -428,13 +431,24 @@ export async function update() {
|
|
|
428
431
|
process.exit(1);
|
|
429
432
|
}
|
|
430
433
|
|
|
434
|
+
console.log(`Using API key: ${apiKey.slice(0, 20)}...`);
|
|
435
|
+
console.log('');
|
|
436
|
+
|
|
437
|
+
// Re-install Studio plugin
|
|
438
|
+
await installPlugin();
|
|
439
|
+
console.log('');
|
|
440
|
+
|
|
441
|
+
// Re-download prompts
|
|
431
442
|
const pkg = await downloadPrompts(apiKey);
|
|
432
443
|
console.log('');
|
|
433
444
|
|
|
434
|
-
//
|
|
445
|
+
// Re-write project files
|
|
435
446
|
console.log('Updating project files...');
|
|
436
447
|
setupProjectPrompts(pkg);
|
|
437
448
|
console.log('');
|
|
438
449
|
|
|
439
450
|
console.log('Update complete!');
|
|
451
|
+
console.log('');
|
|
452
|
+
console.log('Note: Restart Roblox Studio to load the updated plugin.');
|
|
453
|
+
console.log('');
|
|
440
454
|
}
|