@wbern/claude-instructions 2.7.0 → 2.8.0

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 (3) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.js +3 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -74,7 +74,7 @@ Then add a postinstall script to your `package.json`:
74
74
  "postinstall": "npx @wbern/claude-instructions --scope=project --overwrite"
75
75
  },
76
76
  "devDependencies": {
77
- "@wbern/claude-instructions": "^2.7.0"
77
+ "@wbern/claude-instructions": "^2.8.0"
78
78
  }
79
79
  }
80
80
  ```
package/bin/cli.js CHANGED
@@ -1344,7 +1344,9 @@ async function main(args) {
1344
1344
  const isInteractiveMode = !args?.scope;
1345
1345
  let automationNote = "";
1346
1346
  if (isInteractiveMode) {
1347
- const parts = ["npx @wbern/claude-instructions"];
1347
+ const userAgent = process.env.npm_config_user_agent || "";
1348
+ const runCommand = userAgent.startsWith("pnpm/") ? "pnpm dlx @wbern/claude-instructions" : "npx @wbern/claude-instructions";
1349
+ const parts = [runCommand];
1348
1350
  parts.push(`--scope=${scope}`);
1349
1351
  if (commandPrefix) {
1350
1352
  parts.push(`--prefix=${commandPrefix}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wbern/claude-instructions",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "TDD workflow commands for Claude Code CLI",
5
5
  "type": "module",
6
6
  "bin": "./bin/cli.js",