@ttmg/cli 0.3.1-unity.13 → 0.3.1-unity.14

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.
@@ -12,8 +12,8 @@
12
12
  rel="stylesheet"
13
13
  />
14
14
  <title>TikTok Mini Games DevTool</title>
15
- <script type="module" crossorigin src="/assets/index-YhxvkywD.js"></script>
16
- <link rel="stylesheet" crossorigin href="/assets/index-sCifET6h.css">
15
+ <script type="module" crossorigin src="/assets/index-D5if59dO.js"></script>
16
+ <link rel="stylesheet" crossorigin href="/assets/index-9wLHKdTg.css">
17
17
  </head>
18
18
  <body>
19
19
  <div id="root"></div>
@@ -83,12 +83,9 @@ async function compile(context = {}) {
83
83
  chalk.yellow.underline(outputDir),
84
84
  ),
85
85
  );
86
- // if (outputDir) {
87
- // if (fs.existsSync(outputDir)) {
88
- // fs.rmSync(outputDir, { recursive: true, force: true });
89
- // }
90
- // fs.mkdirSync(outputDir, { recursive: true });
91
- // }
86
+ if (fs.existsSync(outputDir)) {
87
+ fs.rmSync(outputDir, { recursive: true, force: true });
88
+ }
92
89
  } catch (e) {
93
90
  // 目录操作失败也上报
94
91
  parentPort?.postMessage({
@@ -100,9 +97,6 @@ async function compile(context = {}) {
100
97
 
101
98
  parentPort?.postMessage({ type: 'status', status: 'start' });
102
99
 
103
- if (fs.existsSync(outputDir)) {
104
- fs.rmSync(outputDir, { recursive: true, force: true });
105
- }
106
100
  // 调用打包
107
101
  const { isSuccess, errorMsg, packages } = await debugPkgs({
108
102
  entry: entryDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttmg/cli",
3
- "version": "0.3.1-unity.13",
3
+ "version": "0.3.1-unity.14",
4
4
  "description": "TikTok Mini Game Command Line Tool",
5
5
  "license": "ISC",
6
6
  "bin": {