create-csch5-monorepo 1.0.3 → 1.0.5
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/lib/commands/update.js
CHANGED
|
@@ -54,6 +54,12 @@ export async function update(options) {
|
|
|
54
54
|
await fs.remove(destPath);
|
|
55
55
|
await copyDir(srcPath, destPath);
|
|
56
56
|
|
|
57
|
+
// 更新版本记录
|
|
58
|
+
rc.updatedAt = new Date().toISOString();
|
|
59
|
+
rc.updatedPackages = rc.updatedPackages || {};
|
|
60
|
+
rc.updatedPackages[packageName] = new Date().toISOString();
|
|
61
|
+
await fs.writeJson(rcPath, rc, { spaces: 2 });
|
|
62
|
+
|
|
57
63
|
spinner.succeed(`已更新 packages/${packageName}`);
|
|
58
64
|
logger.dim('请运行 pnpm install 安装可能新增的依赖');
|
|
59
65
|
return;
|
package/package.json
CHANGED