wyt-cli 1.0.10 → 1.0.11

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  import path from 'path';
4
4
  // import { require } from '../lib/utils.js';
5
- import { log_error, log_info, log_success, log_warning } from '../lib/logger.js';
5
+ import { log_error, log_info, log_success } from '../lib/logger.js';
6
6
 
7
7
  // 外部依赖
8
8
  import { Command } from 'commander';
@@ -162,8 +162,8 @@ async function createProject(projectName, options) {
162
162
  // 执行所有渲染任务
163
163
  Promise.all(renderTasks);
164
164
 
165
- // 更新 root -> package.json -> apps 配置
166
- updateRootPackageJson(projectName, options);
165
+ // 更新 root -> project.json -> apps 配置
166
+ updateRootProjectJson(projectName, options);
167
167
  }
168
168
 
169
169
  // 检测已有项目信息
@@ -241,9 +241,9 @@ async function checkProjectInfo(options) {
241
241
  return results;
242
242
  }
243
243
 
244
- // 更新 root -> package.json -> apps 配置
245
- async function updateRootPackageJson(projectName, options) {
246
- const appsConfigPath = path.join(process.cwd(), 'package.json');
244
+ // 更新 root -> project.json -> apps 配置
245
+ async function updateRootProjectJson(projectName, options) {
246
+ const appsConfigPath = path.join(process.cwd(), 'project.json');
247
247
 
248
248
  try {
249
249
  // 读取配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wyt-cli",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "HRP3.0 项目命令行工具",
5
5
  "main": "index.js",
6
6
  "bin": {