obsidian-plugin-config 1.5.6 → 1.5.8

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.5.6
6
+ * Version: 1.5.8
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.5.6",
3
+ "version": "1.5.8",
4
4
  "description": "Système d'injection pour plugins Obsidian autonomes",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -36,7 +36,6 @@
36
36
  "eslint-import-resolver-typescript": "latest",
37
37
  "jiti": "latest",
38
38
  "obsidian": "*",
39
- "obsidian-plugin-config": "latest",
40
39
  "obsidian-typings": "latest",
41
40
  "prettier": "latest",
42
41
  "semver": "latest",
@@ -22,10 +22,21 @@ async function createReleaseNotesFile(tagMessage: string, tag: string): Promise<
22
22
  }
23
23
 
24
24
  async function handleExistingTag(tag: string): Promise<boolean> {
25
- const confirmed = await askConfirmation(
26
- `Tag ${tag} already exists. Do you want to replace it?`,
27
- rl
28
- );
25
+ // Get the existing tag message to show to the user
26
+ let existingMessage = '';
27
+ try {
28
+ existingMessage = execSync(`git tag -l -n999 ${tag}`, { encoding: 'utf8' }).trim();
29
+ } catch {
30
+ // If we can't get the message, continue anyway
31
+ }
32
+
33
+ let prompt = `Tag ${tag} already exists.`;
34
+ if (existingMessage) {
35
+ prompt += `\n\nExisting tag message:\n${existingMessage}\n`;
36
+ }
37
+ prompt += `\nDo you want to replace it?`;
38
+
39
+ const confirmed = await askConfirmation(prompt, rl);
29
40
 
30
41
  if (!confirmed) {
31
42
  console.log('Operation aborted');
package/versions.json CHANGED
@@ -54,5 +54,7 @@
54
54
  "1.5.3": "1.8.9",
55
55
  "1.5.4": "1.8.9",
56
56
  "1.5.5": "1.8.9",
57
- "1.5.6": "1.8.9"
57
+ "1.5.6": "1.8.9",
58
+ "1.5.7": "1.8.9",
59
+ "1.5.8": "1.8.9"
58
60
  }