obsidian-plugin-config 1.6.4 → 1.6.5

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.4
6
+ * Version: 1.6.5
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.4",
3
+ "version": "1.6.5",
4
4
  "description": "Global CLI injection tool for Obsidian plugins",
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,7 +17,19 @@ const rl = createReadlineInterface();
17
17
 
18
18
  async function main(): Promise<void> {
19
19
  try {
20
- console.log(`🎯 Obsidian Plugin Config - Local Injection Tool`);
20
+ // Show version
21
+ const configRoot = findPluginConfigRoot();
22
+ let version = 'unknown';
23
+ try {
24
+ const pkg = JSON.parse(
25
+ fs.readFileSync(path.join(configRoot, 'package.json'), 'utf8')
26
+ );
27
+ version = pkg.version || 'unknown';
28
+ } catch {
29
+ // Ignore
30
+ }
31
+
32
+ console.log(`🎯 Obsidian Plugin Config - Local Injection Tool v${version}`);
21
33
  console.log(`📥 Inject autonomous configuration from local files\n`);
22
34
 
23
35
  const args = process.argv.slice(2);