@handsupmin/gc-tree 0.8.10 → 0.8.11
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/dist/src/update.js +7 -1
- package/package.json +1 -1
package/dist/src/update.js
CHANGED
|
@@ -51,7 +51,13 @@ export async function selfUpdate(home) {
|
|
|
51
51
|
process.stderr.write(`Found ${hosts.length} scaffolded provider(s): ${hosts.map((h) => `${h.host}(${h.scope})`).join(', ')}\n`);
|
|
52
52
|
}
|
|
53
53
|
process.stderr.write('\nUpdating gctree to latest...\n');
|
|
54
|
-
|
|
54
|
+
try {
|
|
55
|
+
execSync('npm install -g @handsupmin/gc-tree', { stdio: 'inherit' });
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
process.stderr.write('\nnpm registry may not have propagated the latest version yet. Wait a minute and retry: gctree update\n');
|
|
59
|
+
process.exit(1);
|
|
60
|
+
}
|
|
55
61
|
if (hosts.length > 0) {
|
|
56
62
|
process.stderr.write('\nRe-scaffolding providers with new version...\n');
|
|
57
63
|
for (const record of hosts) {
|