create-dwy 0.6.0 → 0.6.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/bin/index.js CHANGED
@@ -5,33 +5,24 @@ import { fileURLToPath } from 'url'
5
5
  import { dirname, resolve } from 'path'
6
6
  import { program } from 'commander'
7
7
  import { createProject } from '../src/create.js'
8
- import { syncClaude, syncProjectClaude } from '../src/sync.js'
8
+ import { syncClaude } from '../src/sync.js'
9
9
 
10
10
  const __dirname = dirname(fileURLToPath(import.meta.url))
11
11
  const pkg = JSON.parse(readFileSync(resolve(__dirname, '..', 'package.json'), 'utf-8'))
12
12
 
13
13
  program
14
14
  .name('dwy')
15
- .description('Project scaffolding and Claude Code config sync')
15
+ .description('项目脚手架与 Claude Code 配置同步工具')
16
16
  .version(pkg.version)
17
17
 
18
18
  program
19
19
  .command('create [name]')
20
- .description('Create a new project from template')
20
+ .description('从模板创建新项目')
21
21
  .action(createProject)
22
22
 
23
23
  program
24
- .command('sync <target>')
25
- .description('Sync Claude configuration (claude | project-claude)')
26
- .action(async (target) => {
27
- if (target === 'claude') {
28
- await syncClaude()
29
- } else if (target === 'project-claude') {
30
- await syncProjectClaude()
31
- } else {
32
- console.error(`Unknown sync target: ${target}. Use "claude" or "project-claude".`)
33
- process.exit(1)
34
- }
35
- })
24
+ .command('sync')
25
+ .description('交互式选择并同步 Claude Code 配置到当前目录的 .claude/')
26
+ .action(syncClaude)
36
27
 
37
28
  program.parse()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-dwy",
3
- "version": "0.6.0",
4
- "description": "Project scaffolding and Claude Code config sync CLI",
3
+ "version": "0.6.1",
4
+ "description": "项目脚手架与 Claude Code 配置同步工具",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "dwy": "./bin/index.js"
package/src/sync.js CHANGED
@@ -234,10 +234,4 @@ export async function syncClaude() {
234
234
  console.log(chalk.blue(`\nDone! Synced ${syncedCount} items to ${targetDir}`))
235
235
  }
236
236
 
237
- /**
238
- * 保留旧的 project-claude 同步逻辑
239
- */
240
- export async function syncProjectClaude() {
241
- console.log(chalk.yellow('"dwy sync project-claude" is deprecated. Use "dwy sync claude" instead.'))
242
- await syncClaude()
243
- }
237
+