@dcloudio/uni-cli-shared 3.0.0-alpha-4050120250121001 → 3.0.0-alpha-4050320250221001
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/json/pages.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function isUniPageFile(file: string, inputDir?: string): boolean;
|
|
2
|
+
export declare function isUniPageSetupAndUts(file: string): boolean;
|
|
2
3
|
export declare function isUniPageSetupAndTs(file: string): boolean;
|
|
3
4
|
export declare function isUniPageSfcFile(file: string, inputDir?: string): boolean;
|
|
4
5
|
/**
|
package/dist/json/pages.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.filterPlatformPages = exports.parseSubpackagesRootOnce = exports.normalizePagesRoute = exports.removePlatformStyle = exports.validatePages = exports.normalizePagesJson = exports.parsePagesJsonOnce = exports.parsePagesJson = exports.isUniPageSfcFile = exports.isUniPageSetupAndTs = exports.isUniPageFile = void 0;
|
|
6
|
+
exports.filterPlatformPages = exports.parseSubpackagesRootOnce = exports.normalizePagesRoute = exports.removePlatformStyle = exports.validatePages = exports.normalizePagesJson = exports.parsePagesJsonOnce = exports.parsePagesJson = exports.isUniPageSfcFile = exports.isUniPageSetupAndTs = exports.isUniPageSetupAndUts = exports.isUniPageFile = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const shared_1 = require("@vue/shared");
|
|
@@ -23,6 +23,14 @@ function isUniPageFile(file, inputDir = process.env.UNI_INPUT_DIR) {
|
|
|
23
23
|
return pagesCacheSet.has((0, utils_1.removeExt)(file));
|
|
24
24
|
}
|
|
25
25
|
exports.isUniPageFile = isUniPageFile;
|
|
26
|
+
function isUniPageSetupAndUts(file) {
|
|
27
|
+
const { filename, query } = (0, vite_1.parseVueRequest)(file);
|
|
28
|
+
return !!(query.vue &&
|
|
29
|
+
query.setup &&
|
|
30
|
+
(0, shared_1.hasOwn)(query, 'lang.uts') &&
|
|
31
|
+
constants_1.EXTNAME_VUE_RE.test(filename));
|
|
32
|
+
}
|
|
33
|
+
exports.isUniPageSetupAndUts = isUniPageSetupAndUts;
|
|
26
34
|
function isUniPageSetupAndTs(file) {
|
|
27
35
|
const { filename, query } = (0, vite_1.parseVueRequest)(file);
|
|
28
36
|
return !!(query.vue &&
|
package/dist/utils.js
CHANGED
|
@@ -203,7 +203,9 @@ function createIdent(platform) {
|
|
|
203
203
|
if (process.env.UNI_INPUT_DIR) {
|
|
204
204
|
const manifestJson = (0, json_1.parseManifestJsonOnce)(process.env.UNI_INPUT_DIR);
|
|
205
205
|
let id = (manifestJson.appid || '').replace('__UNI__', '');
|
|
206
|
-
const platformAppId =
|
|
206
|
+
const platformAppId = platform === 'mp-harmony'
|
|
207
|
+
? (manifestJson[platform]?.distribute?.bundleName || '').replace('com.atomicservice.', '')
|
|
208
|
+
: manifestJson[platform]?.appid;
|
|
207
209
|
if (platformAppId) {
|
|
208
210
|
id += '%%' + platformAppId;
|
|
209
211
|
}
|
package/dist/vite/autoImport.js
CHANGED
|
@@ -232,11 +232,11 @@ function uniUTSAppUniModulesPlugin(options = {}) {
|
|
|
232
232
|
await syncUniModuleFilesByCompiler(platform, uniXArkTSCompiler, pluginDir, createAppHarmonyUniModulesSyncFilePreprocessorOnce(isX));
|
|
233
233
|
}
|
|
234
234
|
if (!utsPlugins.has(pluginId)) {
|
|
235
|
+
utsPlugins.add(pluginId);
|
|
235
236
|
if (uniXKotlinCompiler) {
|
|
236
237
|
const platform = 'app-android';
|
|
237
238
|
const indexFileName = resolveTscUniModuleIndexFileName(platform, pluginDir);
|
|
238
239
|
if (indexFileName) {
|
|
239
|
-
utsPlugins.add(pluginId);
|
|
240
240
|
await uniXKotlinCompiler.addRootFile(indexFileName);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
@@ -244,7 +244,6 @@ function uniUTSAppUniModulesPlugin(options = {}) {
|
|
|
244
244
|
const platform = 'app-ios';
|
|
245
245
|
const indexFileName = resolveTscUniModuleIndexFileName(platform, pluginDir);
|
|
246
246
|
if (indexFileName) {
|
|
247
|
-
utsPlugins.add(pluginId);
|
|
248
247
|
await uniXSwiftCompiler.addRootFile(indexFileName);
|
|
249
248
|
}
|
|
250
249
|
}
|
|
@@ -252,7 +251,6 @@ function uniUTSAppUniModulesPlugin(options = {}) {
|
|
|
252
251
|
const platform = 'app-harmony';
|
|
253
252
|
const indexFileName = resolveTscUniModuleIndexFileName(platform, pluginDir);
|
|
254
253
|
if (indexFileName) {
|
|
255
|
-
utsPlugins.add(pluginId);
|
|
256
254
|
await uniXArkTSCompiler.addRootFile(indexFileName);
|
|
257
255
|
}
|
|
258
256
|
}
|
|
@@ -368,9 +366,9 @@ function uniUTSAppUniModulesPlugin(options = {}) {
|
|
|
368
366
|
continue;
|
|
369
367
|
}
|
|
370
368
|
}
|
|
371
|
-
if (process.env.
|
|
372
|
-
process.env.UNI_PLATFORM === 'app-harmony') {
|
|
369
|
+
if (process.env.UNI_PLATFORM === 'app-harmony') {
|
|
373
370
|
// uniExtApiCompiler本身是为X项目准备的,但是在app-harmony项目中也会调用
|
|
371
|
+
// uni-app-x app-harmony暂不支持其他类型插件
|
|
374
372
|
if (!fs_extra_1.default.existsSync(path_1.default.resolve(pluginDir, 'utssdk', 'app-harmony', 'index.uts'))) {
|
|
375
373
|
continue;
|
|
376
374
|
}
|
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-4050320250221001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"tapable": "^2.2.0",
|
|
67
67
|
"unplugin-auto-import": "^0.18.2",
|
|
68
68
|
"xregexp": "3.1.0",
|
|
69
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
70
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
69
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-4050320250221001",
|
|
70
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-4050320250221001"
|
|
71
71
|
},
|
|
72
72
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
73
73
|
"devDependencies": {
|
|
@@ -88,6 +88,6 @@
|
|
|
88
88
|
"postcss": "^8.4.21",
|
|
89
89
|
"unimport": "^3.11.1",
|
|
90
90
|
"vue": "3.4.21",
|
|
91
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
91
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-4050320250221001"
|
|
92
92
|
}
|
|
93
93
|
}
|