@dcloudio/uni-cli-shared 3.0.0-alpha-4000020240111001 → 3.0.0-alpha-4000020240117001
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/constants.d.ts +1 -0
- package/dist/constants.js +2 -1
- package/dist/easycom.js +4 -0
- package/dist/logs/format.js +6 -0
- package/dist/uts.js +2 -4
- package/package.json +4 -4
package/dist/constants.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const H5_API_STYLE_PATH = "@dcloudio/uni-h5/style/api/";
|
|
|
31
31
|
export declare const H5_FRAMEWORK_STYLE_PATH = "@dcloudio/uni-h5/style/framework/";
|
|
32
32
|
export declare const H5_COMPONENTS_STYLE_PATH = "@dcloudio/uni-h5/style/";
|
|
33
33
|
export declare const BASE_COMPONENTS_STYLE_PATH = "@dcloudio/uni-components/style/";
|
|
34
|
+
export declare const X_BASE_COMPONENTS_STYLE_PATH = "@dcloudio/uni-components/style-x/";
|
|
34
35
|
export declare const COMMON_EXCLUDE: RegExp[];
|
|
35
36
|
export declare const KNOWN_ASSET_TYPES: string[];
|
|
36
37
|
export declare const DEFAULT_ASSETS_RE: RegExp;
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TEXT_STYLE = exports.DEFAULT_ASSETS_RE = exports.KNOWN_ASSET_TYPES = exports.COMMON_EXCLUDE = exports.BASE_COMPONENTS_STYLE_PATH = exports.H5_COMPONENTS_STYLE_PATH = exports.H5_FRAMEWORK_STYLE_PATH = exports.H5_API_STYLE_PATH = exports.X_PAGE_EXTNAME_APP = exports.X_PAGE_EXTNAME = exports.PAGE_EXTNAME = exports.PAGE_EXTNAME_APP = exports.BINDING_COMPONENTS = exports.APP_CONFIG_SERVICE = exports.APP_CONFIG = exports.APP_SERVICE_FILENAME = exports.ASSETS_INLINE_LIMIT = exports.JSON_JS_MAP = exports.MANIFEST_JSON_UTS = exports.MANIFEST_JSON_JS = exports.PAGES_JSON_UTS = exports.PAGES_JSON_JS = exports.uni_app_x_extensions = exports.extensions = exports.EXTNAME_TS_RE = exports.EXTNAME_JS_RE = exports.EXTNAME_VUE_RE = exports.EXTNAME_VUE_TEMPLATE = exports.X_EXTNAME_VUE = exports.EXTNAME_VUE = exports.EXTNAME_TS = exports.X_EXTNAME_JS = exports.EXTNAME_JS = exports.PUBLIC_DIR = void 0;
|
|
3
|
+
exports.TEXT_STYLE = exports.DEFAULT_ASSETS_RE = exports.KNOWN_ASSET_TYPES = exports.COMMON_EXCLUDE = exports.X_BASE_COMPONENTS_STYLE_PATH = exports.BASE_COMPONENTS_STYLE_PATH = exports.H5_COMPONENTS_STYLE_PATH = exports.H5_FRAMEWORK_STYLE_PATH = exports.H5_API_STYLE_PATH = exports.X_PAGE_EXTNAME_APP = exports.X_PAGE_EXTNAME = exports.PAGE_EXTNAME = exports.PAGE_EXTNAME_APP = exports.BINDING_COMPONENTS = exports.APP_CONFIG_SERVICE = exports.APP_CONFIG = exports.APP_SERVICE_FILENAME = exports.ASSETS_INLINE_LIMIT = exports.JSON_JS_MAP = exports.MANIFEST_JSON_UTS = exports.MANIFEST_JSON_JS = exports.PAGES_JSON_UTS = exports.PAGES_JSON_JS = exports.uni_app_x_extensions = exports.extensions = exports.EXTNAME_TS_RE = exports.EXTNAME_JS_RE = exports.EXTNAME_VUE_RE = exports.EXTNAME_VUE_TEMPLATE = exports.X_EXTNAME_VUE = exports.EXTNAME_VUE = exports.EXTNAME_TS = exports.X_EXTNAME_JS = exports.EXTNAME_JS = exports.PUBLIC_DIR = void 0;
|
|
4
4
|
exports.PUBLIC_DIR = 'static';
|
|
5
5
|
exports.EXTNAME_JS = ['.js', '.ts', '.jsx', '.tsx'];
|
|
6
6
|
exports.X_EXTNAME_JS = ['.uts', ...exports.EXTNAME_JS];
|
|
@@ -45,6 +45,7 @@ exports.H5_API_STYLE_PATH = '@dcloudio/uni-h5/style/api/';
|
|
|
45
45
|
exports.H5_FRAMEWORK_STYLE_PATH = '@dcloudio/uni-h5/style/framework/';
|
|
46
46
|
exports.H5_COMPONENTS_STYLE_PATH = '@dcloudio/uni-h5/style/';
|
|
47
47
|
exports.BASE_COMPONENTS_STYLE_PATH = '@dcloudio/uni-components/style/';
|
|
48
|
+
exports.X_BASE_COMPONENTS_STYLE_PATH = '@dcloudio/uni-components/style-x/';
|
|
48
49
|
exports.COMMON_EXCLUDE = [
|
|
49
50
|
/\/pages\.json\.js$/,
|
|
50
51
|
/\/manifest\.json\.js$/,
|
package/dist/easycom.js
CHANGED
|
@@ -57,6 +57,10 @@ function initEasycoms(inputDir, { dirs, platform, isX, }) {
|
|
|
57
57
|
easycoms.push(item);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
if (isX && globalThis.uts2jsSourceCodeMap) {
|
|
61
|
+
;
|
|
62
|
+
globalThis.uts2jsSourceCodeMap.initUts2jsEasycom(easycoms);
|
|
63
|
+
}
|
|
60
64
|
};
|
|
61
65
|
initEasycom(options);
|
|
62
66
|
initUTSEasycom();
|
package/dist/logs/format.js
CHANGED
|
@@ -30,6 +30,9 @@ const initWarnFormattersOnce = (0, uni_shared_1.once)(() => {
|
|
|
30
30
|
warnFormatters.push(log_1.removeWarnFormatter);
|
|
31
31
|
});
|
|
32
32
|
function formatErrMsg(msg, options) {
|
|
33
|
+
if (options && (0, env_1.isInHBuilderX)()) {
|
|
34
|
+
options.timestamp = false;
|
|
35
|
+
}
|
|
33
36
|
initErrFormattersOnce();
|
|
34
37
|
const formatter = errFormatters.find(({ test }) => test(msg, options));
|
|
35
38
|
if (formatter) {
|
|
@@ -76,6 +79,9 @@ function formatInfoMsg(msg, options) {
|
|
|
76
79
|
}
|
|
77
80
|
exports.formatInfoMsg = formatInfoMsg;
|
|
78
81
|
function formatWarnMsg(msg, options) {
|
|
82
|
+
if (options && (0, env_1.isInHBuilderX)()) {
|
|
83
|
+
options.timestamp = false;
|
|
84
|
+
}
|
|
79
85
|
initWarnFormattersOnce();
|
|
80
86
|
const formatter = warnFormatters.find(({ test }) => test(msg, options));
|
|
81
87
|
if (formatter) {
|
package/dist/uts.js
CHANGED
|
@@ -136,9 +136,7 @@ exports.parseUTSComponent = parseUTSComponent;
|
|
|
136
136
|
function initUTSComponents(inputDir, platform) {
|
|
137
137
|
utsComponents.clear();
|
|
138
138
|
const components = [];
|
|
139
|
-
|
|
140
|
-
return components;
|
|
141
|
-
}
|
|
139
|
+
const isApp = platform === 'app' || platform === 'app-plus';
|
|
142
140
|
const easycomsObj = {};
|
|
143
141
|
const dirs = resolveUTSComponentDirs(inputDir);
|
|
144
142
|
dirs.forEach((dir) => {
|
|
@@ -163,7 +161,7 @@ function initUTSComponents(inputDir, platform) {
|
|
|
163
161
|
if (name) {
|
|
164
162
|
const importDir = (0, utils_1.normalizePath)(is_uni_modules_utssdk ? path_1.default.dirname(dir) : dir);
|
|
165
163
|
easycomsObj[`^${name}$`] = {
|
|
166
|
-
source: `${importDir}?uts-proxy
|
|
164
|
+
source: isApp ? `${importDir}?uts-proxy` : (0, utils_1.normalizePath)(file),
|
|
167
165
|
kotlinPackage: parseKotlinPackageWithPluginId(pluginId, is_uni_modules_utssdk),
|
|
168
166
|
swiftModule: parseSwiftPackageWithPluginId(pluginId, is_uni_modules_utssdk),
|
|
169
167
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-4000020240117001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@babel/core": "^7.21.3",
|
|
27
27
|
"@babel/parser": "^7.23.5",
|
|
28
28
|
"@babel/types": "^7.20.7",
|
|
29
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
30
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
29
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-4000020240117001",
|
|
30
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-4000020240117001",
|
|
31
31
|
"@intlify/core-base": "9.1.9",
|
|
32
32
|
"@intlify/shared": "9.1.9",
|
|
33
33
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
69
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4000020240117001",
|
|
70
70
|
"@types/babel__code-frame": "^7.0.6",
|
|
71
71
|
"@types/babel__core": "^7.1.19",
|
|
72
72
|
"@types/debug": "^4.1.7",
|