@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.
- package/README.md +1 -1
- package/bin/cli.js +3 -1
- 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.
|
|
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
|
|
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}`);
|