@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.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/public/assets/index-9wLHKdTg.css +1 -0
- package/dist/public/assets/index-9wLHKdTg.css.br +0 -0
- package/dist/public/assets/index-D5if59dO.js +67 -0
- package/dist/public/assets/index-D5if59dO.js.br +0 -0
- package/dist/public/index.html +2 -2
- package/dist/scripts/worker.js +3 -9
- package/package.json +1 -1
|
Binary file
|
package/dist/public/index.html
CHANGED
|
@@ -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-
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
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>
|
package/dist/scripts/worker.js
CHANGED
|
@@ -83,12 +83,9 @@ async function compile(context = {}) {
|
|
|
83
83
|
chalk.yellow.underline(outputDir),
|
|
84
84
|
),
|
|
85
85
|
);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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,
|