@aiot-toolkit/aiotpack 2.0.6-beta.20 → 2.0.6-beta.22

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.
@@ -66,9 +66,6 @@ class BeforeCompileUtils {
66
66
  _sharedUtils.ColorConsole.throw(`### manifest ### path '${_path.default.join(entryDir, entryPages.join(' | '))}' does not exist`);
67
67
  }
68
68
  });
69
- } else {
70
- // 没有pages配置
71
- _sharedUtils.ColorConsole.throw(`### manifest ### No pages configuration`);
72
69
  }
73
70
  //获取轻卡路由
74
71
  if (widgets) {
@@ -69,7 +69,6 @@ const ManifestSchema = {
69
69
  router: {
70
70
  // TODO 更详细的后台运行配置信息,
71
71
  type: 'object',
72
- required: ['entry', 'pages'],
73
72
  properties: {
74
73
  entry: {
75
74
  type: 'string'
@@ -67,7 +67,7 @@ class UxFileUtils {
67
67
  entry,
68
68
  pages
69
69
  } = jsonData.router;
70
- if (!pages[entry]) {
70
+ if (entry && !pages?.[entry]) {
71
71
  errors.push(new TypeError(`router.entry content: ${entry}, is missing in router.pages`));
72
72
  }
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiot-toolkit/aiotpack",
3
- "version": "2.0.6-beta.20",
3
+ "version": "2.0.6-beta.22",
4
4
  "description": "The process tool for packaging aiot projects.",
5
5
  "keywords": [
6
6
  "aiotpack"
@@ -19,14 +19,14 @@
19
19
  "test": "node ./__tests__/aiotpack.test.js"
20
20
  },
21
21
  "dependencies": {
22
- "@aiot-toolkit/generator": "2.0.6-beta.20",
23
- "@aiot-toolkit/parser": "2.0.6-beta.20",
24
- "@aiot-toolkit/shared-utils": "2.0.6-beta.20",
22
+ "@aiot-toolkit/generator": "2.0.6-beta.22",
23
+ "@aiot-toolkit/parser": "2.0.6-beta.22",
24
+ "@aiot-toolkit/shared-utils": "2.0.6-beta.22",
25
25
  "@hap-toolkit/aaptjs": "^2.0.0",
26
26
  "@rspack/core": "^1.3.9",
27
27
  "aiot-parse5": "^1.0.2",
28
28
  "babel-loader": "^9.1.3",
29
- "file-lane": "2.0.6-beta.20",
29
+ "file-lane": "2.0.6-beta.22",
30
30
  "file-loader": "^6.2.0",
31
31
  "fs-extra": "^11.2.0",
32
32
  "jsrsasign": "^11.1.0",
@@ -42,5 +42,5 @@
42
42
  "@types/jsrsasign": "^10.5.12",
43
43
  "@types/webpack-sources": "^3.2.3"
44
44
  },
45
- "gitHead": "b2a85a11db9ff9e51e63bfca5643f3e6e0eeb15c"
45
+ "gitHead": "36e03348be739bca8665d981ce33d4d3f8cc4df5"
46
46
  }