@iamdangavin/claude-skill-vitepress-docs 3.0.0 → 3.0.1

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.
Files changed (2) hide show
  1. package/install.js +11 -2
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -1,13 +1,22 @@
1
1
  #!/usr/bin/env node
2
- import { mkdirSync, copyFileSync, readdirSync } from 'fs';
2
+ import { mkdirSync, copyFileSync, readdirSync, rmSync, existsSync } from 'fs';
3
3
  import { join, dirname } from 'path';
4
4
  import { homedir } from 'os';
5
5
  import { fileURLToPath } from 'url';
6
6
 
7
7
  const __dirname = dirname(fileURLToPath(import.meta.url));
8
+ const home = homedir();
8
9
 
10
+ // Remove old skill location if it exists
11
+ const oldSkill = join(home, '.claude', 'skills', 'vitepress-docs');
12
+ if (existsSync(oldSkill)) {
13
+ rmSync(oldSkill, { recursive: true });
14
+ console.log(` ✓ Removed old skill at ${oldSkill}`);
15
+ }
16
+
17
+ // Install new commands
9
18
  const src = join(__dirname, 'commands', 'vitedocs');
10
- const dest = join(homedir(), '.claude', 'commands', 'vitedocs');
19
+ const dest = join(home, '.claude', 'commands', 'vitedocs');
11
20
 
12
21
  mkdirSync(dest, { recursive: true });
13
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iamdangavin/claude-skill-vitepress-docs",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Installs the vitedocs: Claude Code skill suite — VitePress docs setup, generate, screenshot, sync, brand, and update.",
5
5
  "type": "module",
6
6
  "bin": {