@ztffn/presentation-generator-plugin 1.3.2 → 1.3.3
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/bin/index.js +3 -8
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -127,14 +127,6 @@ function promptChoice(title, choices) {
|
|
|
127
127
|
async function resolveInstallTarget() {
|
|
128
128
|
const projectClaudeDir = path.join(process.cwd(), ".claude");
|
|
129
129
|
|
|
130
|
-
if (!fs.existsSync(projectClaudeDir)) {
|
|
131
|
-
return {
|
|
132
|
-
installDir: GLOBAL_INSTALL_DIR,
|
|
133
|
-
settingsPath: path.join(os.homedir(), ".claude", "settings.json"),
|
|
134
|
-
scope: "global",
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
130
|
const idx = await promptChoice("Installation scope", [
|
|
139
131
|
{
|
|
140
132
|
label: "Global",
|
|
@@ -147,6 +139,9 @@ async function resolveInstallTarget() {
|
|
|
147
139
|
]);
|
|
148
140
|
|
|
149
141
|
if (idx === 1) {
|
|
142
|
+
if (!fs.existsSync(projectClaudeDir)) {
|
|
143
|
+
fs.mkdirSync(projectClaudeDir, { recursive: true });
|
|
144
|
+
}
|
|
150
145
|
return {
|
|
151
146
|
installDir: PROJECT_INSTALL_DIR,
|
|
152
147
|
settingsPath: path.join(projectClaudeDir, "settings.json"),
|