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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feng3d",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "创建或更新符合 feng3d 规范的项目",
5
5
  "author": "feng",
6
6
  "commands": {
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.directory);
52
+ await updateProject(options);
49
53
  console.log(chalk.green('\n✅ 规范配置更新成功!\n'));
50
54
  }
51
55
  catch (error)
@@ -0,0 +1,5 @@
1
+ const __viteBrowserExternal = {};
2
+ export {
3
+ __viteBrowserExternal as default
4
+ };
5
+ //# sourceMappingURL=__vite-browser-external-2Ng8QIWW.js.map
@@ -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;"}