obsidian-plugin-config 1.6.2 → 1.6.3

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.
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Obsidian Plugin Config - CLI Entry Point
5
5
  * Global command: obsidian-inject
6
- * Version: 1.6.2
6
+ * Version: 1.6.3
7
7
  */
8
8
 
9
9
  import { execSync } from 'child_process';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-plugin-config",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Global CLI injection tool for Obsidian plugins",
5
5
  "type": "module",
6
6
  "bin": {
@@ -290,14 +290,18 @@ async function buildAndPublishNpm(): Promise<void> {
290
290
 
291
291
  // Optional: Update global CLI automatically
292
292
  console.log(`\nšŸŒ Updating global CLI...`);
293
- console.log(` ā³ Waiting 15s for NPM registry propagation...`);
294
- await new Promise((resolve) => setTimeout(resolve, 15000));
295
- execSync(
296
- 'npm install -g obsidian-plugin-config@latest --force --engine-strict=false',
297
- { stdio: 'inherit' }
298
- );
299
- console.log(` āœ… Global CLI updated`);
300
-
293
+ console.log(` ā³ Waiting 30s for NPM registry propagation...`);
294
+ await new Promise((resolve) => setTimeout(resolve, 30000));
295
+ try {
296
+ execSync(
297
+ 'npm install -g obsidian-plugin-config@latest --force --engine-strict=false',
298
+ { stdio: 'inherit' }
299
+ );
300
+ console.log(` āœ… Global CLI updated`);
301
+ } catch {
302
+ console.log(` āš ļø Global CLI update failed (NPM registry may need more time)`);
303
+ console.log(` šŸ’” Run manually in a few minutes: npm install -g obsidian-plugin-config@latest --force`);
304
+ }
301
305
  console.log(`\nšŸŽ‰ Complete workflow successful!`);
302
306
  console.log(` Test: cd any-plugin && obsidian-inject`);
303
307
  } catch (error) {