@dcloudio/uni-cli-shared 3.0.0-alpha-3070020230202001 → 3.0.0-alpha-3070120230207001

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/hbx/env.js CHANGED
@@ -12,7 +12,7 @@ const utils_1 = require("../utils");
12
12
  exports.isInHBuilderX = (0, uni_shared_1.once)(() => {
13
13
  // 自动化测试传入了 HX_APP_ROOT(其实就是UNI_HBUILDERX_PLUGINS)
14
14
  if (process.env.HX_APP_ROOT) {
15
- process.env.UNI_HBUILDERX_PLUGINS = process.env.HX_APP_ROOT;
15
+ process.env.UNI_HBUILDERX_PLUGINS = process.env.HX_APP_ROOT + '/plugins';
16
16
  return true;
17
17
  }
18
18
  try {
package/dist/uts.d.ts CHANGED
@@ -6,7 +6,7 @@ import type { EasycomMatcher } from './easycom';
6
6
  * @param importer
7
7
  * @returns
8
8
  */
9
- export declare function resolveUtsAppModule(id: string, importer: string): string | undefined;
10
- export declare function resolveUtsModule(id: string, importer: string): string | undefined;
9
+ export declare function resolveUTSAppModule(id: string, importer: string): string | undefined;
10
+ export declare function resolveUTSModule(id: string, importer: string): string | undefined;
11
11
  export declare function resolveUTSCompiler(): typeof UTSCompiler;
12
12
  export declare function initUTSComponents(inputDir: string, platform: UniApp.PLATFORM): EasycomMatcher[];
package/dist/uts.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.initUTSComponents = exports.resolveUTSCompiler = exports.resolveUtsModule = exports.resolveUtsAppModule = void 0;
6
+ exports.initUTSComponents = exports.resolveUTSCompiler = exports.resolveUTSModule = exports.resolveUTSAppModule = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const fast_glob_1 = __importDefault(require("fast-glob"));
@@ -15,7 +15,7 @@ const utils_1 = require("./utils");
15
15
  * @param importer
16
16
  * @returns
17
17
  */
18
- function resolveUtsAppModule(id, importer) {
18
+ function resolveUTSAppModule(id, importer) {
19
19
  id = path_1.default.resolve(importer, id);
20
20
  if (id.includes('utssdk') || id.includes('uni_modules')) {
21
21
  const parts = (0, utils_1.normalizePath)(id).split('/');
@@ -29,21 +29,21 @@ function resolveUtsAppModule(id, importer) {
29
29
  return path_1.default.resolve(id, basedir, p);
30
30
  };
31
31
  const extname = ['.uts'];
32
- if (resolveUtsFile(resolvePlatformDir('app-android'), extname)) {
32
+ if (resolveUTSFile(resolvePlatformDir('app-android'), extname)) {
33
33
  return id;
34
34
  }
35
- if (resolveUtsFile(resolvePlatformDir('app-ios'), extname)) {
35
+ if (resolveUTSFile(resolvePlatformDir('app-ios'), extname)) {
36
36
  return id;
37
37
  }
38
38
  }
39
39
  }
40
40
  }
41
- exports.resolveUtsAppModule = resolveUtsAppModule;
41
+ exports.resolveUTSAppModule = resolveUTSAppModule;
42
42
  // 仅限 root/uni_modules/test-plugin | root/utssdk/test-plugin 格式
43
- function resolveUtsModule(id, importer) {
43
+ function resolveUTSModule(id, importer) {
44
44
  if (process.env.UNI_PLATFORM === 'app' ||
45
45
  process.env.UNI_PLATFORM === 'app-plus') {
46
- return resolveUtsAppModule(id, importer);
46
+ return resolveUTSAppModule(id, importer);
47
47
  }
48
48
  id = path_1.default.resolve(importer, id);
49
49
  if (id.includes('utssdk') || id.includes('uni_modules')) {
@@ -54,7 +54,7 @@ function resolveUtsModule(id, importer) {
54
54
  const resolvePlatformDir = (p) => {
55
55
  return path_1.default.resolve(id, basedir, p);
56
56
  };
57
- let index = resolveUtsFile(resolvePlatformDir(process.env.UNI_UTS_PLATFORM));
57
+ let index = resolveUTSFile(resolvePlatformDir(process.env.UNI_UTS_PLATFORM));
58
58
  if (index) {
59
59
  return index;
60
60
  }
@@ -65,8 +65,8 @@ function resolveUtsModule(id, importer) {
65
65
  }
66
66
  }
67
67
  }
68
- exports.resolveUtsModule = resolveUtsModule;
69
- function resolveUtsFile(dir, extensions = ['.uts', '.ts', '.js']) {
68
+ exports.resolveUTSModule = resolveUTSModule;
69
+ function resolveUTSFile(dir, extensions = ['.uts', '.ts', '.js']) {
70
70
  for (let i = 0; i < extensions.length; i++) {
71
71
  const indexFile = path_1.default.join(dir, 'index' + extensions[i]);
72
72
  if (fs_1.default.existsSync(indexFile)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3070020230202001",
3
+ "version": "3.0.0-alpha-3070120230207001",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,24 +25,24 @@
25
25
  "@babel/core": "^7.20.5",
26
26
  "@babel/parser": "^7.20.5",
27
27
  "@babel/types": "^7.20.7",
28
- "@dcloudio/uni-i18n": "3.0.0-alpha-3070020230202001",
29
- "@dcloudio/uni-shared": "3.0.0-alpha-3070020230202001",
28
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3070120230207001",
29
+ "@dcloudio/uni-shared": "3.0.0-alpha-3070120230207001",
30
30
  "@intlify/core-base": "9.1.9",
31
31
  "@intlify/shared": "9.1.9",
32
32
  "@intlify/vue-devtools": "9.1.9",
33
33
  "@rollup/pluginutils": "^4.2.0",
34
- "@vue/compiler-core": "3.2.45",
35
- "@vue/compiler-dom": "3.2.45",
36
- "@vue/compiler-sfc": "3.2.45",
37
- "@vue/server-renderer": "3.2.45",
38
- "@vue/shared": "3.2.45",
34
+ "@vue/compiler-core": "3.2.47",
35
+ "@vue/compiler-dom": "3.2.47",
36
+ "@vue/compiler-sfc": "3.2.47",
37
+ "@vue/server-renderer": "3.2.47",
38
+ "@vue/shared": "3.2.47",
39
39
  "autoprefixer": "^10.4.13",
40
40
  "base64url": "^3.0.1",
41
41
  "chokidar": "^3.5.3",
42
42
  "compare-versions": "^3.6.0",
43
43
  "debug": "^4.3.3",
44
44
  "es-module-lexer": "^0.9.3",
45
- "esbuild": "^0.16.3",
45
+ "esbuild": "^0.16.14",
46
46
  "estree-walker": "^2.0.2",
47
47
  "fast-glob": "^3.2.11",
48
48
  "fs-extra": "^10.0.0",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
66
66
  "devDependencies": {
67
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-3070020230202001",
67
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-3070120230207001",
68
68
  "@types/babel__core": "^7.1.19",
69
69
  "@types/debug": "^4.1.7",
70
70
  "@types/estree": "^0.0.51",
@@ -76,7 +76,7 @@
76
76
  "@types/resolve": "^1.20.2",
77
77
  "@types/sass": "^1.43.1",
78
78
  "@types/stylus": "^0.48.36",
79
- "postcss": "^8.4.16",
80
- "vue": "3.2.45"
79
+ "postcss": "^8.4.21",
80
+ "vue": "3.2.47"
81
81
  }
82
82
  }
package/lib/.DS_Store DELETED
Binary file
Binary file