feng3d-cli 0.1.2 → 0.1.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/.claude-skill/skill.json +1 -1
- package/bin/cli.js +5 -1
- package/dist/__vite-browser-external-2Ng8QIWW.js +5 -0
- package/dist/__vite-browser-external-2Ng8QIWW.js.map +1 -0
- package/dist/index.js +435 -163
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +440 -163
- package/dist/index.umd.cjs.map +1 -1
- package/lib/commands/update.d.ts +3 -6
- package/lib/commands/update.d.ts.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/types.d.ts +75 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/utils/merge.d.ts +52 -0
- package/lib/utils/merge.d.ts.map +1 -0
- package/package.json +1 -1
package/.claude-skill/skill.json
CHANGED
package/bin/cli.js
CHANGED
|
@@ -40,12 +40,16 @@ program
|
|
|
40
40
|
.command('update')
|
|
41
41
|
.description('更新当前项目的规范配置')
|
|
42
42
|
.option('-d, --directory <dir>', '项目目录', '.')
|
|
43
|
+
.option('--merge-strategy <strategy>', '合并策略: overwrite (覆盖), merge (合并, 默认), skip-existing (跳过已存在)', 'merge')
|
|
44
|
+
.option('--interactive', '交互式模式,逐个文件询问处理方式')
|
|
45
|
+
.option('--dry-run', '预览更改而不实际修改文件')
|
|
46
|
+
.option('--force', '强制覆盖已存在的配置文件(等同于 --merge-strategy overwrite)')
|
|
43
47
|
.action(async (options) =>
|
|
44
48
|
{
|
|
45
49
|
console.log(chalk.blue('\n🔄 更新项目规范配置\n'));
|
|
46
50
|
try
|
|
47
51
|
{
|
|
48
|
-
await updateProject(options
|
|
52
|
+
await updateProject(options);
|
|
49
53
|
console.log(chalk.green('\n✅ 规范配置更新成功!\n'));
|
|
50
54
|
}
|
|
51
55
|
catch (error)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__vite-browser-external-2Ng8QIWW.js","sources":["../__vite-browser-external"],"sourcesContent":["export default {}"],"names":[],"mappings":"AAAA,MAAA,wBAAe,CAAA;"}
|