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.
- package/bin/obsidian-inject.js +1 -1
- package/package.json +1 -1
- package/scripts/build-npm.ts +12 -8
package/bin/obsidian-inject.js
CHANGED
package/package.json
CHANGED
package/scripts/build-npm.ts
CHANGED
|
@@ -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
|
|
294
|
-
await new Promise((resolve) => setTimeout(resolve,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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) {
|