@htyf-mp/cli 0.7.6 → 0.7.10
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/package.json +7 -7
- package/src/build.mjs +2 -0
- package/src/shared-output.json +59 -58
- package/src/sync-deps.mjs +10 -0
- package/src/webpack.config.mjs +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htyf-mp/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.10",
|
|
4
4
|
"description": "红糖云服app小程序模板-cli",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"pnpm": ">=9.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"react-native-reanimated": "4.
|
|
42
|
-
"react-native-worklets": "0.
|
|
41
|
+
"react-native-reanimated": "4.7.1",
|
|
42
|
+
"react-native-worklets": "0.13.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/core": "7.29.0",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"ora": "9.3.0",
|
|
68
68
|
"portfinder": "1.0.38",
|
|
69
69
|
"qrcode": "1.5.4",
|
|
70
|
-
"react-native-reanimated": "4.
|
|
71
|
-
"react-native-worklets": "0.
|
|
70
|
+
"react-native-reanimated": "4.7.1",
|
|
71
|
+
"react-native-worklets": "0.13.0",
|
|
72
72
|
"shelljs": "0.10.0",
|
|
73
73
|
"superstatic": "10.0.0",
|
|
74
74
|
"systeminformation": "5.31.5",
|
|
75
75
|
"terser-webpack-plugin": "5.4.0",
|
|
76
|
-
"typescript": "
|
|
76
|
+
"typescript": "5.7.3",
|
|
77
77
|
"uuid": "9.0.1",
|
|
78
78
|
"webpack": "5.105.4",
|
|
79
79
|
"webpack-cli": "7.0.2"
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "0067e6e3177368dd7d4bd4dd4552f164e4ee20fa"
|
|
86
86
|
}
|
package/src/build.mjs
CHANGED
|
@@ -281,6 +281,8 @@ export async function mpBuildShell(newAppInfo, isGodot = false, buildOptions = {
|
|
|
281
281
|
outputPath: path.join(mpOutputPath, 'build'), // webpack 构建输出目录
|
|
282
282
|
extraChunksPath: outputPath,
|
|
283
283
|
manifest: path.join(mpOutputPath, 'manifest.json'),
|
|
284
|
+
appid,
|
|
285
|
+
version,
|
|
284
286
|
};
|
|
285
287
|
Logger.info('mpOptions', mpOptions);
|
|
286
288
|
|
package/src/shared-output.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@boterop/react-native-background-timer": "2.6.0",
|
|
3
|
-
"@callstack/repack": "5.
|
|
3
|
+
"@callstack/repack": "5.4.0",
|
|
4
4
|
"@d11/react-native-fast-image": "8.13.0",
|
|
5
5
|
"@dr.pogodin/react-native-fs": "2.40.3",
|
|
6
|
-
"@expo/
|
|
6
|
+
"@expo/dom-webview": "58.0.2",
|
|
7
|
+
"@expo/log-box": "58.0.13",
|
|
7
8
|
"@htyf-mp/airhop-transport": "0.2.1",
|
|
8
9
|
"@htyf-mp/react-native-godot": "1.0.5",
|
|
9
|
-
"@kesha-antonov/react-native-background-downloader": "4.6.
|
|
10
|
-
"@lodev09/react-native-true-sheet": "3.11.
|
|
11
|
-
"@react-native-async-storage/async-storage": "
|
|
10
|
+
"@kesha-antonov/react-native-background-downloader": "4.6.3",
|
|
11
|
+
"@lodev09/react-native-true-sheet": "3.11.18",
|
|
12
|
+
"@react-native-async-storage/async-storage": "2.2.0",
|
|
12
13
|
"@react-native-camera-roll/camera-roll": "7.10.2",
|
|
13
14
|
"@react-native-clipboard/clipboard": "1.16.3",
|
|
14
15
|
"@react-native-community/blur": "4.4.1",
|
|
@@ -22,104 +23,104 @@
|
|
|
22
23
|
"@react-native-picker/picker": "2.11.4",
|
|
23
24
|
"@react-native-segmented-control/segmented-control": "2.5.7",
|
|
24
25
|
"@sayem314/react-native-keep-awake": "2.0.0",
|
|
25
|
-
"@shopify/react-native-skia": "2.
|
|
26
|
-
"expo": "
|
|
27
|
-
"expo-asset": "
|
|
28
|
-
"expo-audio": "
|
|
29
|
-
"expo-brightness": "
|
|
30
|
-
"expo-camera": "
|
|
31
|
-
"expo-clipboard": "
|
|
32
|
-
"expo-constants": "
|
|
33
|
-
"expo-crypto": "
|
|
34
|
-
"expo-document-picker": "
|
|
35
|
-
"expo-file-system": "
|
|
36
|
-
"expo-font": "
|
|
37
|
-
"expo-image-manipulator": "
|
|
38
|
-
"expo-image-picker": "
|
|
39
|
-
"expo-keep-awake": "
|
|
40
|
-
"expo-linear-gradient": "
|
|
41
|
-
"expo-linking": "
|
|
42
|
-
"expo-location": "
|
|
43
|
-
"expo-modules-core": "
|
|
44
|
-
"expo-router": "
|
|
45
|
-
"expo-sensors": "
|
|
46
|
-
"expo-system-ui": "
|
|
47
|
-
"expo-video": "
|
|
26
|
+
"@shopify/react-native-skia": "2.14.0",
|
|
27
|
+
"expo": "58.0.21",
|
|
28
|
+
"expo-asset": "58.0.19",
|
|
29
|
+
"expo-audio": "58.0.10",
|
|
30
|
+
"expo-brightness": "58.0.2",
|
|
31
|
+
"expo-camera": "58.0.14",
|
|
32
|
+
"expo-clipboard": "58.0.4",
|
|
33
|
+
"expo-constants": "58.0.14",
|
|
34
|
+
"expo-crypto": "58.0.7",
|
|
35
|
+
"expo-document-picker": "58.0.4",
|
|
36
|
+
"expo-file-system": "58.0.13",
|
|
37
|
+
"expo-font": "58.0.11",
|
|
38
|
+
"expo-image-manipulator": "58.0.16",
|
|
39
|
+
"expo-image-picker": "58.0.10",
|
|
40
|
+
"expo-keep-awake": "58.0.3",
|
|
41
|
+
"expo-linear-gradient": "58.0.3",
|
|
42
|
+
"expo-linking": "58.0.15",
|
|
43
|
+
"expo-location": "58.0.20",
|
|
44
|
+
"expo-modules-core": "58.0.28",
|
|
45
|
+
"expo-router": "58.0.28",
|
|
46
|
+
"expo-sensors": "58.0.4",
|
|
47
|
+
"expo-system-ui": "58.0.7",
|
|
48
|
+
"expo-video": "58.0.13",
|
|
48
49
|
"jcore-react-native": "2.3.7",
|
|
49
50
|
"jpush-react-native": "3.2.8",
|
|
50
51
|
"llama.rn": "0.12.9",
|
|
51
52
|
"lottie-react-native": "7.5.0",
|
|
52
53
|
"react-airplay": "2.0.2",
|
|
53
|
-
"react-native-audio-api": "0.13.
|
|
54
|
-
"react-native-avoid-softinput": "9.0.
|
|
54
|
+
"react-native-audio-api": "0.13.6",
|
|
55
|
+
"react-native-avoid-softinput": "9.0.1",
|
|
55
56
|
"react-native-background-actions": "4.1.0",
|
|
56
|
-
"react-native-ble-manager": "12.5.
|
|
57
|
-
"react-native-blob-util": "0.
|
|
57
|
+
"react-native-ble-manager": "12.5.3",
|
|
58
|
+
"react-native-blob-util": "0.25.1",
|
|
58
59
|
"react-native-camera-kit": "18.0.1",
|
|
59
60
|
"react-native-config": "1.7.2",
|
|
60
61
|
"react-native-device-info": "15.0.2",
|
|
61
|
-
"react-native-edge-to-edge": "1.8.
|
|
62
|
+
"react-native-edge-to-edge": "1.8.2",
|
|
62
63
|
"react-native-enriched-html": "1.1.1",
|
|
63
|
-
"react-native-enriched-markdown": "1.0
|
|
64
|
-
"react-native-file-access": "4.0.
|
|
65
|
-
"react-native-gesture-handler": "3.
|
|
64
|
+
"react-native-enriched-markdown": "1.1.0",
|
|
65
|
+
"react-native-file-access": "4.0.4",
|
|
66
|
+
"react-native-gesture-handler": "3.3.0",
|
|
66
67
|
"react-native-get-random-values": "2.0.0",
|
|
67
68
|
"react-native-global-exception-handler": "1.0.2",
|
|
68
|
-
"react-native-google-mobile-ads": "
|
|
69
|
-
"react-native-iap": "16.
|
|
69
|
+
"react-native-google-mobile-ads": "17.2.0",
|
|
70
|
+
"react-native-iap": "16.7.2",
|
|
70
71
|
"react-native-image-code-scanner": "1.2.0",
|
|
71
72
|
"react-native-image-colors": "2.6.0",
|
|
72
73
|
"react-native-image-picker": "8.2.1",
|
|
73
|
-
"react-native-keyboard-controller": "1.22.
|
|
74
|
+
"react-native-keyboard-controller": "1.22.7",
|
|
74
75
|
"react-native-linear-gradient": "2.8.3",
|
|
75
|
-
"react-native-localize": "3.7.
|
|
76
|
-
"react-native-maps": "1.29.
|
|
77
|
-
"react-native-media-toolkit": "2.3.
|
|
76
|
+
"react-native-localize": "3.7.2",
|
|
77
|
+
"react-native-maps": "1.29.11",
|
|
78
|
+
"react-native-media-toolkit": "2.3.7",
|
|
78
79
|
"react-native-mmkv": "4.3.2",
|
|
79
80
|
"react-native-nitro-bg-timer-plus": "0.3.3",
|
|
80
|
-
"react-native-nitro-buffer": "0.
|
|
81
|
+
"react-native-nitro-buffer": "0.3.0",
|
|
81
82
|
"react-native-nitro-cookies": "1.2.1",
|
|
82
|
-
"react-native-nitro-fetch": "1.
|
|
83
|
+
"react-native-nitro-fetch": "1.8.0",
|
|
83
84
|
"react-native-nitro-geolocation": "2.0.2",
|
|
84
85
|
"react-native-nitro-haptics": "0.2.3",
|
|
85
|
-
"react-native-nitro-http-server": "1.
|
|
86
|
-
"react-native-nitro-markdown": "0.
|
|
86
|
+
"react-native-nitro-http-server": "1.10.0",
|
|
87
|
+
"react-native-nitro-markdown": "0.14.0",
|
|
87
88
|
"react-native-nitro-modules": "0.37.1",
|
|
88
89
|
"react-native-nitro-player": "1.6.1",
|
|
89
90
|
"react-native-nitro-rtmp-publisher": "0.15.0",
|
|
90
91
|
"react-native-nitro-sound": "0.2.20",
|
|
91
|
-
"react-native-nitro-sqlite": "
|
|
92
|
+
"react-native-nitro-sqlite": "10.1.0",
|
|
92
93
|
"react-native-nitro-sse": "3.0.0",
|
|
93
94
|
"react-native-nitro-text-decoder": "0.2.0",
|
|
94
95
|
"react-native-nitro-unzip": "0.6.0",
|
|
95
96
|
"react-native-nitro-websockets": "1.3.1",
|
|
96
97
|
"react-native-orientation-locker": "1.7.0",
|
|
97
|
-
"react-native-pager-view": "9.0.
|
|
98
|
-
"react-native-permissions": "5.6.
|
|
98
|
+
"react-native-pager-view": "9.0.7",
|
|
99
|
+
"react-native-permissions": "5.6.2",
|
|
99
100
|
"react-native-qr-kit": "1.1.6",
|
|
100
101
|
"react-native-quick-base64": "3.0.1",
|
|
101
102
|
"react-native-quick-crypto": "1.1.7",
|
|
102
103
|
"react-native-quickjs-sandbox": "1.0.1",
|
|
103
|
-
"react-native-reanimated": "4.
|
|
104
|
+
"react-native-reanimated": "4.7.1",
|
|
104
105
|
"react-native-restart": "0.0.29",
|
|
105
|
-
"react-native-safe-area-context": "5.
|
|
106
|
-
"react-native-screens": "4.
|
|
106
|
+
"react-native-safe-area-context": "5.10.1",
|
|
107
|
+
"react-native-screens": "4.30.0",
|
|
107
108
|
"react-native-share": "12.3.1",
|
|
108
109
|
"react-native-sherpa-onnx": "0.4.4",
|
|
109
110
|
"react-native-splash-view": "0.0.22",
|
|
110
|
-
"react-native-svg": "15.
|
|
111
|
+
"react-native-svg": "15.16.0",
|
|
111
112
|
"react-native-teleport": "1.2.2",
|
|
112
113
|
"react-native-track-player": "5.0.0-alpha0-nightly-359af5a12d712d3b685530aed9b9625865a25d74",
|
|
113
114
|
"react-native-vector-icons": "10.3.0",
|
|
114
|
-
"react-native-video": "6.19.
|
|
115
|
-
"react-native-view-shot": "
|
|
115
|
+
"react-native-video": "6.19.3",
|
|
116
|
+
"react-native-view-shot": "6.1.1",
|
|
116
117
|
"react-native-vlc-media-player": "1.0.98",
|
|
117
118
|
"react-native-volume-manager": "2.2.0",
|
|
118
|
-
"react-native-webgpu": "0.10.
|
|
119
|
+
"react-native-webgpu": "0.10.5",
|
|
119
120
|
"react-native-webrtc": "124.0.8",
|
|
120
121
|
"react-native-webview": "14.0.1",
|
|
121
122
|
"react-native-wifi-reborn": "4.13.6",
|
|
122
|
-
"react-native-worklets": "0.
|
|
123
|
+
"react-native-worklets": "0.13.0",
|
|
123
124
|
"react-native-worklets-core": "1.6.3",
|
|
124
|
-
"react-native": "0.
|
|
125
|
+
"react-native": "0.88.1"
|
|
125
126
|
}
|
package/src/sync-deps.mjs
CHANGED
|
@@ -28,6 +28,12 @@ function normalizeVersion(version) {
|
|
|
28
28
|
return String(version || '').replace(/^[~^>=<]+/, '');
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
const SKIP_VERSION_PREFIXES = ['workspace:', 'file:', 'link:', 'npm:', 'catalog:'];
|
|
32
|
+
|
|
33
|
+
function shouldSkipVersion(version) {
|
|
34
|
+
return SKIP_VERSION_PREFIXES.some(prefix => String(version).startsWith(prefix));
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
/**
|
|
32
38
|
* 收集 package.json 中与 shared-output.json 匹配的待同步项
|
|
33
39
|
* @param {Record<string, string>} packageJson
|
|
@@ -48,6 +54,10 @@ function collectSyncChanges(packageJson, sharedVersions) {
|
|
|
48
54
|
continue;
|
|
49
55
|
}
|
|
50
56
|
|
|
57
|
+
if (shouldSkipVersion(version)) {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
|
|
51
61
|
const targetVersion = sharedVersions[name];
|
|
52
62
|
if (normalizeVersion(version) !== targetVersion) {
|
|
53
63
|
changes.push({
|
package/src/webpack.config.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import TerserPlugin from 'terser-webpack-plugin';
|
|
|
7
7
|
import * as Repack from '@callstack/repack';
|
|
8
8
|
import { ExpoModulesPlugin } from '@callstack/repack-plugin-expo-modules';
|
|
9
9
|
import { ReanimatedPlugin } from '@callstack/repack-plugin-reanimated';
|
|
10
|
-
import { HtyfModulesPlugin } from '
|
|
10
|
+
import { HtyfModulesPlugin } from './HtyfImportsPlugin.mjs';
|
|
11
11
|
import { getProjectRoot } from './utils.mjs';
|
|
12
12
|
|
|
13
13
|
// 获取当前文件和目录路径
|
|
@@ -30,13 +30,13 @@ const appid = process.env.APP_ID;
|
|
|
30
30
|
// 构建Module Federation共享依赖对象
|
|
31
31
|
const sharedObj = {};
|
|
32
32
|
for (const key in dependencies) {
|
|
33
|
-
const
|
|
33
|
+
const version = dependencies[key];
|
|
34
34
|
sharedObj[key] = {
|
|
35
35
|
/** 是否运行为单例 */
|
|
36
36
|
singleton: true,
|
|
37
37
|
/** host模式下必须为true,微应用为false */
|
|
38
38
|
eager: true,
|
|
39
|
-
version
|
|
39
|
+
version,
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -53,7 +53,7 @@ export default (env = {}) => {
|
|
|
53
53
|
const { entry = appRootIndexPath, platform = 'ios' } = env;
|
|
54
54
|
const context = env.context || __dirname;
|
|
55
55
|
// 获取Repack的resolve配置
|
|
56
|
-
const _options = Repack.getResolveOptions();
|
|
56
|
+
const _options = Repack.getResolveOptions(platform);
|
|
57
57
|
|
|
58
58
|
// 解析微前端相关配置
|
|
59
59
|
let mpOptions = {};
|
|
@@ -192,4 +192,4 @@ export default (env = {}) => {
|
|
|
192
192
|
};
|
|
193
193
|
|
|
194
194
|
return mpConfig;
|
|
195
|
-
};
|
|
195
|
+
};
|