crafters 0.2.0 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.1] - 2025-01-10
9
+
10
+ ### Fixed
11
+
12
+ - Clone claude-dx to `~/.crafters/claude-dx` instead of hardcoded user path
13
+
8
14
  ## [0.2.0] - 2025-01-10
9
15
 
10
16
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crafters",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Crafter Station CLI - Domain management and Claude Code configuration",
5
5
  "type": "module",
6
6
  "author": "raillyhugo",
@@ -13,7 +13,8 @@ import {
13
13
  } from "node:fs/promises";
14
14
 
15
15
  const CLAUDE_DX_REPO = "crafter-station/claude-dx";
16
- const CLAUDE_DX_PATH = join(homedir(), "Programming/crafter-station/claude-dx");
16
+ const CRAFTERS_DIR = join(homedir(), ".crafters");
17
+ const CLAUDE_DX_PATH = join(CRAFTERS_DIR, "claude-dx");
17
18
  const CLAUDE_CONFIG_PATH = join(homedir(), ".claude");
18
19
 
19
20
  async function exists(path: string): Promise<boolean> {
@@ -26,6 +27,8 @@ async function exists(path: string): Promise<boolean> {
26
27
  }
27
28
 
28
29
  async function cloneOrPullRepo(): Promise<void> {
30
+ await mkdir(CRAFTERS_DIR, { recursive: true });
31
+
29
32
  if (await exists(CLAUDE_DX_PATH)) {
30
33
  console.log("Updating claude-dx...");
31
34
  execSync("git pull", { cwd: CLAUDE_DX_PATH, stdio: "inherit" });
package/src/index.ts CHANGED
@@ -7,7 +7,7 @@ import { login, logout, whoami } from "./commands/login";
7
7
  const main = defineCommand({
8
8
  meta: {
9
9
  name: "crafters",
10
- version: "0.2.0",
10
+ version: "0.2.1",
11
11
  description: "Crafter Station CLI - Domain management and Claude Code configuration",
12
12
  },
13
13
  subCommands: {