@hopla/claude-setup 1.1.4 → 1.1.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.
Files changed (2) hide show
  1. package/cli.js +7 -0
  2. package/package.json +3 -2
package/cli.js CHANGED
@@ -7,6 +7,13 @@ import readline from "readline";
7
7
 
8
8
  const FORCE = process.argv.includes("--force");
9
9
  const UNINSTALL = process.argv.includes("--uninstall");
10
+ const VERSION = process.argv.includes("--version") || process.argv.includes("-v");
11
+
12
+ if (VERSION) {
13
+ const pkg = JSON.parse(fs.readFileSync(new URL("./package.json", import.meta.url), "utf8"));
14
+ console.log(`@hopla/claude-setup v${pkg.version}`);
15
+ process.exit(0);
16
+ }
10
17
  const CLAUDE_DIR = path.join(os.homedir(), ".claude");
11
18
  const COMMANDS_DIR = path.join(CLAUDE_DIR, "commands");
12
19
  const FILES_DIR = path.join(import.meta.dirname, "files");
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@hopla/claude-setup",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Hopla team agentic coding system for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {
7
- "claude-setup": "cli.js"
7
+ "claude-setup": "cli.js",
8
+ "hopla-claude-setup": "cli.js"
8
9
  },
9
10
  "files": [
10
11
  "cli.js",