@aiot-toolkit/aiotpack 2.0.4 → 2.0.5-beta.1

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.
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _path = _interopRequireDefault(require("path"));
8
7
  var _AndroidUx = _interopRequireDefault(require("../../../utils/ux/android/AndroidUx"));
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
9
  /**
@@ -13,9 +12,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
12
  class UxLoader {
14
13
  async parser(files) {
15
14
  const result = [];
16
- const {
17
- projectPath
18
- } = this.context;
19
15
  for (let item of files) {
20
16
  const {
21
17
  files,
@@ -25,10 +21,7 @@ class UxLoader {
25
21
  file: item,
26
22
  compilerOption: this.compilerOption
27
23
  });
28
- this.logs = logs.map(item => ({
29
- ...item,
30
- filePath: item.filePath ? _path.default.relative(projectPath, item.filePath) : ''
31
- }));
24
+ this.logs = logs;
32
25
  result.push(...files);
33
26
  }
34
27
  return result;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _path = _interopRequireDefault(require("path"));
8
7
  var _UxLoaderUtils = _interopRequireDefault(require("../../../utils/ux/UxLoaderUtils"));
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
9
  /**
@@ -13,17 +12,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
12
  */
14
13
  class AppUxLoader {
15
14
  async parser(files) {
16
- const {
17
- projectPath
18
- } = this.context;
19
15
  const {
20
16
  files: resultFiles,
21
17
  logs
22
18
  } = await _UxLoaderUtils.default.compileAppUxToJavascript(files[0], this.context, this.compilerOption);
23
- this.logs = logs.map(item => ({
24
- ...item,
25
- filePath: item.filePath ? _path.default.relative(projectPath, item.filePath) : ''
26
- }));
19
+ this.logs = logs;
27
20
  return resultFiles;
28
21
  }
29
22
  }
@@ -4,15 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _path = _interopRequireDefault(require("path"));
8
7
  var _UxLoaderUtils = _interopRequireDefault(require("../../../utils/ux/UxLoaderUtils"));
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
9
  class UxLoader {
11
10
  async parser(files) {
12
11
  const resultFiles = [];
13
- const {
14
- projectPath
15
- } = this.context;
16
12
  for (const file of files) {
17
13
  // 转换每个文件
18
14
  const {
@@ -22,7 +18,7 @@ class UxLoader {
22
18
  this.logs = logs.map(item => {
23
19
  return {
24
20
  ...item,
25
- filePath: item.position?.source ? item.position.source : item.filePath ? _path.default.relative(projectPath, item.filePath) : ''
21
+ filePath: item.position?.source || item.filePath
26
22
  };
27
23
  });
28
24
  resultFiles.push(...compiledFiles);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiot-toolkit/aiotpack",
3
- "version": "2.0.4",
3
+ "version": "2.0.5-beta.1",
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.4",
23
- "@aiot-toolkit/parser": "2.0.4",
24
- "@aiot-toolkit/shared-utils": "2.0.4",
22
+ "@aiot-toolkit/generator": "2.0.5-beta.1",
23
+ "@aiot-toolkit/parser": "2.0.5-beta.1",
24
+ "@aiot-toolkit/shared-utils": "2.0.5-beta.1",
25
25
  "@hap-toolkit/aaptjs": "^2.0.0",
26
26
  "@rspack/core": "^1.1.8",
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.4",
31
+ "file-lane": "2.0.5-beta.1",
32
32
  "file-loader": "^6.2.0",
33
33
  "fs-extra": "^11.2.0",
34
34
  "jsrsasign": "^11.1.0",
@@ -46,5 +46,5 @@
46
46
  "@types/jsrsasign": "^10.5.12",
47
47
  "@types/webpack-sources": "^3.2.3"
48
48
  },
49
- "gitHead": "0668bd975b2d26018491625bcf526e265832bb97"
49
+ "gitHead": "44f8c6ee763bc01bd53c655b93e09c698057fc3e"
50
50
  }