@aiot-toolkit/aiotpack 2.0.3-beta.5 → 2.0.3-beta.7

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.
@@ -273,6 +273,7 @@ UxAfterCompile.moveBackResult = (params) => __awaiter(void 0, void 0, void 0, fu
273
273
  }
274
274
  ];
275
275
  targetList.forEach((item) => {
276
+ fs_extra_1.default.removeSync(item.to);
276
277
  fs_extra_1.default.moveSync(item.from, item.to, { overwrite: true });
277
278
  });
278
279
  });
@@ -52,7 +52,7 @@ class WrapPlugin {
52
52
  return Object.fromEntries(value.split(';').filter(item => Boolean(item && item.trim())).map(
53
53
  item => {
54
54
  const matchs = item.match(/([^:]+):(.*)/)
55
- if (matchs && matchs.lenth> 2) {
55
+ if (matchs && matchs.length> 2) {
56
56
  return [matchs[1].trim().replace(/-([a-z])/g, (_, match) => match.toUpperCase()), matchs[2].trim()]
57
57
  }
58
58
  return []
@@ -38,7 +38,7 @@ class WrapPlugin {
38
38
  return Object.fromEntries(value.split(';').filter(item => Boolean(item && item.trim())).map(
39
39
  item => {
40
40
  const matchs = item.match(/([^:]+):(.*)/)
41
- if (matchs && matchs.lenth> 2) {
41
+ if (matchs && matchs.length> 2) {
42
42
  return [matchs[1].trim().replace(/-([a-z])/g, (_, match) => match.toUpperCase()), matchs[2].trim()]
43
43
  }
44
44
  return []
@@ -85,9 +85,6 @@ BeforeCompileUtils.clean = (params) => __awaiter(void 0, void 0, void 0, functio
85
85
  if (compalition) {
86
86
  compalition.buildFileList = buildFileList;
87
87
  }
88
- // 清空build文件夹、dist文件夹
89
- yield shared_utils_1.FileUtil.del(path_1.default.join(context.projectPath, compilerOption.outputPath));
90
- yield shared_utils_1.FileUtil.del(path_1.default.join(context.projectPath, compilerOption.releasePath));
91
88
  }
92
89
  context.translateCache = new TranslateCache_1.default();
93
90
  BinaryPlugin.reset();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiot-toolkit/aiotpack",
3
- "version": "2.0.3-beta.5",
3
+ "version": "2.0.3-beta.7",
4
4
  "description": "The process tool for packaging aiot projects.",
5
5
  "keywords": [
6
6
  "aiotpack"
@@ -19,16 +19,16 @@
19
19
  "test": "node ./__tests__/aiotpack.test.js"
20
20
  },
21
21
  "dependencies": {
22
- "@aiot-toolkit/generator": "2.0.3-beta.5",
23
- "@aiot-toolkit/parser": "2.0.3-beta.5",
24
- "@aiot-toolkit/shared-utils": "2.0.3-beta.5",
22
+ "@aiot-toolkit/generator": "2.0.3-beta.7",
23
+ "@aiot-toolkit/parser": "2.0.3-beta.7",
24
+ "@aiot-toolkit/shared-utils": "2.0.3-beta.7",
25
25
  "@hap-toolkit/aaptjs": "^2.0.0",
26
26
  "@rspack/core": "^1.0.0",
27
27
  "aiot-parse5": "^1.0.0",
28
28
  "archiver": "^7.0.1",
29
29
  "babel-loader": "^9.1.3",
30
30
  "fast-glob": "^3.3.2",
31
- "file-lane": "2.0.3-beta.5",
31
+ "file-lane": "2.0.3-beta.7",
32
32
  "file-loader": "^6.2.0",
33
33
  "fs-extra": "^11.2.0",
34
34
  "jsrsasign": "^11.1.0",
@@ -45,5 +45,5 @@
45
45
  "@types/jsrsasign": "^10.5.12",
46
46
  "@types/webpack-sources": "^3.2.3"
47
47
  },
48
- "gitHead": "d1772d1a3e1e3943deab519f2f1c03540cfd683b"
48
+ "gitHead": "9621c52866d7bb1dc23110c4c9cc772b6169b682"
49
49
  }