@cyber-tools/cyber-git 4.5.0 → 4.6.0

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/dist/index.js CHANGED
@@ -5540,7 +5540,7 @@ var import_commander = require("commander");
5540
5540
  // package.json
5541
5541
  var package_default = {
5542
5542
  name: "@cyber-tools/cyber-git",
5543
- version: "4.5.0",
5543
+ version: "4.6.0",
5544
5544
  description: "\u89C4\u8303\u5316git\u64CD\u4F5C\u7684\u76F8\u5173\u7684\u811A\u672C\u548C\u5DE5\u5177",
5545
5545
  main: "./dist/index.js",
5546
5546
  scripts: {
@@ -1,8 +1,11 @@
1
+ import fs from "fs";
1
2
  import path from "path";
2
3
  import esbuild from "esbuild";
4
+ import { promisify } from "util";
3
5
  import { nodeExternalsPlugin } from "esbuild-node-externals";
4
6
 
5
7
  setImmediate(async () => {
8
+ await promisify(fs.rm)(path.resolve(process.cwd(), "./dist/"), { recursive: true, force: true });
6
9
  await esbuild.build({
7
10
  entryPoints: [path.resolve(process.cwd(), "./src/index.ts")],
8
11
  bundle: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyber-tools/cyber-git",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "description": "规范化git操作的相关的脚本和工具",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {