@wbern/claude-instructions 2.7.0 → 2.8.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/README.md +1 -1
- package/bin/cli.js +4 -2
- 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.1"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
```
|
package/bin/cli.js
CHANGED
|
@@ -963,7 +963,7 @@ ${allowedToolsYaml}
|
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
965
|
let templateInjected = false;
|
|
966
|
-
if (!options?.skipTemplateInjection) {
|
|
966
|
+
if (!options?.skipTemplateInjection && scope !== SCOPES.USER) {
|
|
967
967
|
let templateSourcePath = null;
|
|
968
968
|
for (const filename of TEMPLATE_SOURCE_FILES) {
|
|
969
969
|
const candidatePath = path4.join(process.cwd(), filename);
|
|
@@ -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}`);
|