@qse/edu-scripts 1.13.1 → 1.13.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # 更新日志
2
2
 
3
+ ## 1.13.2 (2023-02-01)
4
+
5
+ - fix: 修复部署日志错误
6
+
7
+ ## 1.13.1 (2023-02-01)
8
+
9
+ - feat: 优化日志格式
10
+ - feat: 部署时清理 `ver.js` 里杂乱的 `comments`
11
+
3
12
  ## 1.13.0 (2022-11-10)
4
13
 
5
14
  - feat: 教育集成项目部署增加日志功能
package/lib/deploy.js CHANGED
@@ -80,7 +80,7 @@ async function normalDeploy(args) {
80
80
  function updateLogContent(content, info) {
81
81
  const lines = content.trim().split('\n');
82
82
  lines.push(`[${dateTime()}] ${JSON.stringify(info)}\n`);
83
- return lines.slice(0, 50).join('\n');
83
+ return lines.slice(-50).join('\n');
84
84
  }
85
85
 
86
86
  async function upload(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qse/edu-scripts",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "author": "Kinoko",
5
5
  "license": "MIT",
6
6
  "description": "教育工程化基础框架",
package/src/deploy.js CHANGED
@@ -63,7 +63,7 @@ async function normalDeploy(args) {
63
63
  function updateLogContent(content, info) {
64
64
  const lines = content.trim().split('\n')
65
65
  lines.push(`[${dateTime()}] ${JSON.stringify(info)}\n`)
66
- return lines.slice(0, 50).join('\n')
66
+ return lines.slice(-50).join('\n')
67
67
  }
68
68
 
69
69
  async function upload(opts) {