@htyf-mp/cli 0.7.5 → 0.7.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htyf-mp/cli",
3
- "version": "0.7.5",
3
+ "version": "0.7.9",
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.6.0",
42
- "react-native-worklets": "0.12.1"
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",
@@ -47,9 +47,9 @@
47
47
  "@babel/plugin-transform-class-static-block": "7.28.6",
48
48
  "@babel/preset-env": "7.29.2",
49
49
  "@babel/runtime": "7.29.2",
50
- "@callstack/repack": "5.3.0",
51
- "@callstack/repack-plugin-expo-modules": "5.2.5",
52
- "@callstack/repack-plugin-reanimated": "5.2.5",
50
+ "@callstack/repack": "5.4.0",
51
+ "@callstack/repack-plugin-expo-modules": "5.4.0",
52
+ "@callstack/repack-plugin-reanimated": "5.4.0",
53
53
  "@inquirer/prompts": "7.8.0",
54
54
  "@inquirer/select": "4.3.1",
55
55
  "@module-federation/dts-plugin": "0.21.6",
@@ -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.6.0",
71
- "react-native-worklets": "0.12.1",
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": "6.0.2",
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": "383160a76154cae55014c8f557159f45c0371ea4"
85
+ "gitHead": "c26324a047892c1fb465b7af4b30232fa5844545"
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
 
@@ -8,7 +8,7 @@ dedicated_server=false
8
8
  custom_features=""
9
9
  export_filter="all_resources"
10
10
  include_filter=""
11
- exclude_filter=""
11
+ exclude_filter="addons/godot_ai/**"
12
12
  export_path=""
13
13
  encryption_include_filters=""
14
14
  encryption_exclude_filters=""
@@ -216,7 +216,7 @@ dedicated_server=false
216
216
  custom_features=""
217
217
  export_filter="all_resources"
218
218
  include_filter=""
219
- exclude_filter=""
219
+ exclude_filter="addons/godot_ai/**"
220
220
  export_path=""
221
221
  encryption_include_filters=""
222
222
  encryption_exclude_filters=""
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "@boterop/react-native-background-timer": "2.6.0",
3
- "@callstack/repack": "5.3.0",
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
6
  "@expo/log-box": "57.0.4",
7
7
  "@htyf-mp/airhop-transport": "0.2.1",
8
8
  "@htyf-mp/react-native-godot": "1.0.5",
9
- "@kesha-antonov/react-native-background-downloader": "4.6.2",
10
- "@lodev09/react-native-true-sheet": "3.11.14",
9
+ "@kesha-antonov/react-native-background-downloader": "4.6.3",
10
+ "@lodev09/react-native-true-sheet": "3.11.18",
11
11
  "@react-native-async-storage/async-storage": "3.1.1",
12
12
  "@react-native-camera-roll/camera-roll": "7.10.2",
13
13
  "@react-native-clipboard/clipboard": "1.16.3",
@@ -22,89 +22,88 @@
22
22
  "@react-native-picker/picker": "2.11.4",
23
23
  "@react-native-segmented-control/segmented-control": "2.5.7",
24
24
  "@sayem314/react-native-keep-awake": "2.0.0",
25
- "@shopify/react-native-skia": "2.11.2",
26
- "expo": "57.0.22",
27
- "expo-asset": "57.0.17",
25
+ "@shopify/react-native-skia": "2.14.0",
26
+ "expo": "57.0.26",
27
+ "expo-asset": "57.0.18",
28
28
  "expo-audio": "57.0.5",
29
29
  "expo-brightness": "57.0.2",
30
- "expo-camera": "57.0.4",
30
+ "expo-camera": "57.0.6",
31
31
  "expo-clipboard": "57.0.2",
32
- "expo-constants": "57.0.18",
32
+ "expo-constants": "57.0.20",
33
33
  "expo-crypto": "57.0.3",
34
- "expo-document-picker": "57.0.2",
34
+ "expo-document-picker": "57.0.3",
35
35
  "expo-file-system": "57.0.7",
36
36
  "expo-font": "57.0.4",
37
- "expo-image-manipulator": "57.0.17",
38
- "expo-image-picker": "57.0.17",
37
+ "expo-image-manipulator": "57.0.20",
38
+ "expo-image-picker": "57.0.20",
39
39
  "expo-keep-awake": "57.0.2",
40
40
  "expo-linear-gradient": "57.0.2",
41
- "expo-linking": "57.0.10",
42
- "expo-location": "57.0.17",
43
- "expo-modules-core": "57.0.18",
44
- "expo-router": "57.0.21",
41
+ "expo-linking": "57.0.11",
42
+ "expo-location": "57.0.20",
43
+ "expo-modules-core": "57.0.20",
44
+ "expo-router": "57.0.24",
45
45
  "expo-sensors": "57.0.3",
46
46
  "expo-system-ui": "57.0.4",
47
- "expo-video": "57.0.4",
47
+ "expo-video": "57.0.5",
48
48
  "jcore-react-native": "2.3.7",
49
49
  "jpush-react-native": "3.2.8",
50
50
  "llama.rn": "0.12.9",
51
51
  "lottie-react-native": "7.5.0",
52
52
  "react-airplay": "2.0.2",
53
- "react-native-agora": "4.6.4",
54
- "react-native-audio-api": "0.13.3",
55
- "react-native-avoid-softinput": "9.0.0",
53
+ "react-native-audio-api": "0.13.6",
54
+ "react-native-avoid-softinput": "9.0.1",
56
55
  "react-native-background-actions": "4.1.0",
57
- "react-native-ble-manager": "12.5.2",
58
- "react-native-blob-util": "0.24.11",
56
+ "react-native-ble-manager": "12.5.3",
57
+ "react-native-blob-util": "0.25.1",
59
58
  "react-native-camera-kit": "18.0.1",
60
59
  "react-native-config": "1.7.2",
61
60
  "react-native-device-info": "15.0.2",
62
- "react-native-edge-to-edge": "1.8.1",
61
+ "react-native-edge-to-edge": "1.8.2",
63
62
  "react-native-enriched-html": "1.1.1",
64
- "react-native-enriched-markdown": "1.0.2",
65
- "react-native-file-access": "4.0.3",
66
- "react-native-gesture-handler": "3.2.1",
63
+ "react-native-enriched-markdown": "1.1.0",
64
+ "react-native-file-access": "4.0.4",
65
+ "react-native-gesture-handler": "3.3.0",
67
66
  "react-native-get-random-values": "2.0.0",
68
67
  "react-native-global-exception-handler": "1.0.2",
69
- "react-native-google-mobile-ads": "16.5.0",
70
- "react-native-iap": "16.6.0",
68
+ "react-native-google-mobile-ads": "17.2.0",
69
+ "react-native-iap": "16.7.2",
71
70
  "react-native-image-code-scanner": "1.2.0",
72
71
  "react-native-image-colors": "2.6.0",
73
72
  "react-native-image-picker": "8.2.1",
74
- "react-native-keyboard-controller": "1.22.5",
73
+ "react-native-keyboard-controller": "1.22.6",
75
74
  "react-native-linear-gradient": "2.8.3",
76
- "react-native-localize": "3.7.0",
77
- "react-native-maps": "1.29.0",
78
- "react-native-media-toolkit": "2.3.6",
75
+ "react-native-localize": "3.7.2",
76
+ "react-native-maps": "1.29.11",
77
+ "react-native-media-toolkit": "2.3.7",
79
78
  "react-native-mmkv": "4.3.2",
80
79
  "react-native-nitro-bg-timer-plus": "0.3.3",
81
- "react-native-nitro-buffer": "0.2.2",
80
+ "react-native-nitro-buffer": "0.3.0",
82
81
  "react-native-nitro-cookies": "1.2.1",
83
- "react-native-nitro-fetch": "1.7.0",
82
+ "react-native-nitro-fetch": "1.8.0",
84
83
  "react-native-nitro-geolocation": "2.0.2",
85
84
  "react-native-nitro-haptics": "0.2.3",
86
- "react-native-nitro-http-server": "1.9.2",
87
- "react-native-nitro-markdown": "0.12.4",
85
+ "react-native-nitro-http-server": "1.10.0",
86
+ "react-native-nitro-markdown": "0.14.0",
88
87
  "react-native-nitro-modules": "0.37.1",
89
88
  "react-native-nitro-player": "1.6.1",
90
89
  "react-native-nitro-rtmp-publisher": "0.15.0",
91
90
  "react-native-nitro-sound": "0.2.20",
92
- "react-native-nitro-sqlite": "9.7.0",
91
+ "react-native-nitro-sqlite": "10.1.0",
93
92
  "react-native-nitro-sse": "3.0.0",
94
93
  "react-native-nitro-text-decoder": "0.2.0",
95
94
  "react-native-nitro-unzip": "0.6.0",
96
95
  "react-native-nitro-websockets": "1.3.1",
97
96
  "react-native-orientation-locker": "1.7.0",
98
- "react-native-pager-view": "9.0.4",
99
- "react-native-permissions": "5.6.1",
97
+ "react-native-pager-view": "9.0.6",
98
+ "react-native-permissions": "5.6.2",
100
99
  "react-native-qr-kit": "1.1.6",
101
100
  "react-native-quick-base64": "3.0.1",
102
101
  "react-native-quick-crypto": "1.1.7",
103
102
  "react-native-quickjs-sandbox": "1.0.1",
104
- "react-native-reanimated": "4.6.0",
103
+ "react-native-reanimated": "4.7.1",
105
104
  "react-native-restart": "0.0.29",
106
- "react-native-safe-area-context": "5.9.1",
107
- "react-native-screens": "4.27.0",
105
+ "react-native-safe-area-context": "5.10.1",
106
+ "react-native-screens": "4.28.0",
108
107
  "react-native-share": "12.3.1",
109
108
  "react-native-sherpa-onnx": "0.4.4",
110
109
  "react-native-splash-view": "0.0.22",
@@ -112,15 +111,15 @@
112
111
  "react-native-teleport": "1.2.2",
113
112
  "react-native-track-player": "5.0.0-alpha0-nightly-359af5a12d712d3b685530aed9b9625865a25d74",
114
113
  "react-native-vector-icons": "10.3.0",
115
- "react-native-video": "6.19.2",
116
- "react-native-view-shot": "5.1.1",
114
+ "react-native-video": "6.19.3",
115
+ "react-native-view-shot": "6.1.0",
117
116
  "react-native-vlc-media-player": "1.0.98",
118
117
  "react-native-volume-manager": "2.2.0",
119
- "react-native-webgpu": "0.10.0",
118
+ "react-native-webgpu": "0.10.5",
120
119
  "react-native-webrtc": "124.0.8",
121
120
  "react-native-webview": "14.0.1",
122
121
  "react-native-wifi-reborn": "4.13.6",
123
- "react-native-worklets": "0.12.2",
122
+ "react-native-worklets": "0.13.0",
124
123
  "react-native-worklets-core": "1.6.3",
125
124
  "react-native": "0.86.3"
126
125
  }
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({
@@ -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 '@htyf-mp/cli/HtyfImportsPlugin.mjs';
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 p = dependencies[key];
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: p.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
+ };