From c4994ac2b318f84381c1ac6b62bed4adcce1d110 Mon Sep 17 00:00:00 2001 From: JeremyDev87 Date: Sun, 5 Apr 2026 02:10:26 +0900 Subject: [PATCH] fix(plugin): make validate:commands self-contained and reproducible (#1341) Replace undeclared `npx tsx` with `ts-node` (already in devDependencies) and align the script's Usage comment with the package.json runner. --- packages/claude-code-plugin/package.json | 2 +- packages/claude-code-plugin/scripts/validate-commands.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/claude-code-plugin/package.json b/packages/claude-code-plugin/package.json index 80f2bea9..c940f9c4 100644 --- a/packages/claude-code-plugin/package.json +++ b/packages/claude-code-plugin/package.json @@ -45,7 +45,7 @@ "typecheck": "tsc --noEmit", "circular": "madge --circular --extensions ts src/", "format:check": "prettier --check \"src/**/*.ts\" \"scripts/**/*.ts\"", - "validate:commands": "npx tsx scripts/validate-commands.ts", + "validate:commands": "ts-node scripts/validate-commands.ts", "test": "vitest run", "test:hooks": "python3 -m pytest tests/ -v --tb=short", "test:all": "vitest run && python3 -m pytest tests/ -v --tb=short", diff --git a/packages/claude-code-plugin/scripts/validate-commands.ts b/packages/claude-code-plugin/scripts/validate-commands.ts index 7b341689..6b131238 100644 --- a/packages/claude-code-plugin/scripts/validate-commands.ts +++ b/packages/claude-code-plugin/scripts/validate-commands.ts @@ -12,7 +12,7 @@ * 4. Namespace validation (codingbuddy:* convention) * * Usage: - * npx tsx scripts/validate-commands.ts + * ts-node scripts/validate-commands.ts */ import * as path from 'path';