@quiteer/scripts 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -10
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import enquirer from "enquirer";
12
12
  import { versionBump } from "bumpp";
13
13
 
14
14
  //#region package.json
15
- var version = "0.0.9";
15
+ var version = "0.0.10";
16
16
 
17
17
  //#endregion
18
18
  //#region src/locales/changelog.ts
@@ -250,15 +250,8 @@ async function getRepoWebUrl() {
250
250
  async function prependFile(filePath, content) {
251
251
  try {
252
252
  await access(filePath);
253
- const prev = await readFile(filePath, "utf8");
254
- await writeFile(filePath, [
255
- content.trim(),
256
- "",
257
- prev.trim()
258
- ].join("\n"), "utf8");
259
- } catch {
260
- await writeFile(filePath, `${content.trim()}\n`, "utf8");
261
- }
253
+ } catch {}
254
+ await writeFile(filePath, `${content.trim()}\n`, "utf8");
262
255
  }
263
256
  /**
264
257
  * 为每个提交补充变更文件与统计信息
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quiteer/scripts",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "homepage": "https://taiaiac.github.io/web/ci/scripts.html",
6
6
  "publishConfig": {
7
7
  "access": "public",