cursor-sdd 1.0.8 → 1.0.9

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 (2) hide show
  1. package/bin/setup.ts +4 -3
  2. package/package.json +1 -1
package/bin/setup.ts CHANGED
@@ -151,9 +151,13 @@ function setup({ mode, sourceRoot, folders }) {
151
151
  console.log(`📁 Target: ${targetDir}`);
152
152
  console.log(`đŸŽšī¸ Mode: ${mode}\n`);
153
153
 
154
+ // 選択したãƒĸãƒŧドäģĨ外ぎフりãƒĢダを先ãĢ掃除
155
+ cleanOtherFolders(mode);
156
+
154
157
  // č‡Ēå‹•åŽŸčĄŒæ™‚ã¯æ—ĸ存ぎ .cursor がある場合゚キップ
155
158
  if (isAuto && fs.existsSync(targetDir) && !isForce) {
156
159
  console.log('â„šī¸ .cursor already exists. Run `npx cursor-sdd --force` to overwrite.');
160
+ console.log('â„šī¸ Cleaned other mode folders, skipping copy due to --auto.');
157
161
  process.exit(0);
158
162
  }
159
163
 
@@ -162,9 +166,6 @@ function setup({ mode, sourceRoot, folders }) {
162
166
  fs.mkdirSync(targetDir, { recursive: true });
163
167
  }
164
168
 
165
- // 選択したãƒĸãƒŧドäģĨ外ぎフりãƒĢダを掃除
166
- cleanOtherFolders(mode);
167
-
168
169
  if (!folders.length) {
169
170
  console.log(`â„šī¸ No folders to copy for mode: ${mode}.`);
170
171
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursor-sdd",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Cursor SDD (Spec-Driven Development) - AI-powered spec templates, rules and commands for Cursor IDE",
5
5
  "bin": {
6
6
  "cursor-sdd": "./bin/setup.ts"