@htyf-mp/cli 0.2.13 → 0.2.15

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.2.13",
3
+ "version": "0.2.15",
4
4
  "description": "红糖云服app小程序模板-cli",
5
5
  "type": "module",
6
6
  "bin": {
@@ -342,6 +342,29 @@ export class HtyfModulesPlugin {
342
342
  }
343
343
 
344
344
  try {
345
+ // 确保 react-native 版本在依赖报告中
346
+ if (!dependencies['react-native']) {
347
+ // 如果 shared-output.json 中没有,尝试从 package.json 读取
348
+ try {
349
+ const packageJsonPath = path.join(nodeModulesPath, '../package.json');
350
+ if (fse.pathExistsSync(packageJsonPath)) {
351
+ const packageJson = fse.readJsonSync(packageJsonPath);
352
+ const reactNativeVersion = packageJson.dependencies?.['react-native'] ||
353
+ packageJson.devDependencies?.['react-native'];
354
+ if (reactNativeVersion) {
355
+ const cleanVersion = reactNativeVersion.replace(/^[~^]/, '');
356
+ dependencies['react-native'] = {
357
+ name: 'react-native',
358
+ version: cleanVersion,
359
+ nativeModule: true,
360
+ };
361
+ }
362
+ }
363
+ } catch (error) {
364
+ // 静默失败
365
+ }
366
+ }
367
+
345
368
  const reportDir = path.dirname(manifest);
346
369
  fse.ensureDirSync(reportDir);
347
370
  fse.writeJsonSync(
@@ -2,7 +2,7 @@
2
2
  "@bam.tech/react-native-image-resizer": "3.0.11",
3
3
  "@borndotcom/react-native-godot": "1.0.1",
4
4
  "@boterop/react-native-background-timer": "2.6.0",
5
- "@callstack/repack": "5.2.2",
5
+ "@callstack/repack": "5.2.3",
6
6
  "@d11/react-native-fast-image": "8.13.0",
7
7
  "@dr.pogodin/react-native-fs": "2.36.1",
8
8
  "@dr.pogodin/react-native-static-server": "0.25.3",
@@ -22,60 +22,60 @@
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": "1.4.0",
25
- "@shopify/react-native-skia": "2.4.6",
26
- "expo": "54.0.25",
27
- "expo-asset": "12.0.10",
28
- "expo-audio": "1.0.15",
29
- "expo-brightness": "14.0.7",
30
- "expo-camera": "17.0.9",
31
- "expo-clipboard": "8.0.7",
32
- "expo-constants": "18.0.10",
33
- "expo-crypto": "15.0.7",
34
- "expo-document-picker": "14.0.7",
35
- "expo-font": "14.0.9",
36
- "expo-linear-gradient": "15.0.7",
37
- "expo-linking": "8.0.9",
38
- "expo-modules-autolinking": "3.0.22",
39
- "expo-modules-core": "3.0.26",
40
- "expo-router": "6.0.15",
41
- "expo-system-ui": "6.0.8",
42
- "expo-video": "3.0.14",
25
+ "@shopify/react-native-skia": "2.4.7",
26
+ "expo": "54.0.29",
27
+ "expo-asset": "12.0.11",
28
+ "expo-audio": "1.1.0",
29
+ "expo-brightness": "14.0.8",
30
+ "expo-camera": "17.0.10",
31
+ "expo-clipboard": "8.0.8",
32
+ "expo-constants": "18.0.12",
33
+ "expo-crypto": "15.0.8",
34
+ "expo-document-picker": "14.0.8",
35
+ "expo-font": "14.0.10",
36
+ "expo-linear-gradient": "15.0.8",
37
+ "expo-linking": "8.0.10",
38
+ "expo-modules-autolinking": "3.0.23",
39
+ "expo-modules-core": "3.0.29",
40
+ "expo-router": "6.0.19",
41
+ "expo-system-ui": "6.0.9",
42
+ "expo-video": "3.0.15",
43
43
  "jcore-react-native": "2.3.2",
44
44
  "jpush-react-native": "3.2.1",
45
- "llama.rn": "0.9.0",
45
+ "llama.rn": "0.9.3",
46
46
  "lottie-react-native": "7.3.4",
47
47
  "react-airplay": "1.2.0",
48
48
  "react-native-agora": "4.5.3",
49
49
  "react-native-avoid-softinput": "8.0.2",
50
50
  "react-native-background-actions": "4.0.1",
51
51
  "react-native-ble-manager": "12.4.1",
52
- "react-native-blob-util": "0.24.4",
52
+ "react-native-blob-util": "0.24.5",
53
53
  "react-native-compressor": "1.13.0",
54
54
  "react-native-config": "1.6.1",
55
55
  "react-native-device-info": "15.0.1",
56
56
  "react-native-edge-to-edge": "1.7.0",
57
- "react-native-enriched": "0.1.6",
57
+ "react-native-enriched": "0.2.0",
58
58
  "react-native-file-access": "3.2.0",
59
59
  "react-native-gesture-handler": "2.29.1",
60
60
  "react-native-get-random-values": "2.0.0",
61
61
  "react-native-global-exception-handler": "1.0.1",
62
- "react-native-google-mobile-ads": "16.0.0",
62
+ "react-native-google-mobile-ads": "16.0.1",
63
63
  "react-native-haptic-feedback": "2.3.3",
64
- "react-native-iap": "14.4.46",
64
+ "react-native-iap": "14.5.0",
65
65
  "react-native-image-colors": "2.5.1",
66
66
  "react-native-image-picker": "8.2.1",
67
67
  "react-native-keyboard-controller": "1.20.1",
68
68
  "react-native-keychain": "10.0.0",
69
69
  "react-native-linear-gradient": "2.8.3",
70
70
  "react-native-localize": "3.6.0",
71
- "react-native-mmkv": "4.0.1",
71
+ "react-native-mmkv": "4.1.0",
72
72
  "react-native-nitro-modules": "0.31.10",
73
73
  "react-native-orientation-locker": "1.7.0",
74
74
  "react-native-pager-view": "7.0.2",
75
75
  "react-native-permissions": "5.4.4",
76
76
  "react-native-quick-base64": "2.2.2",
77
77
  "react-native-quick-crypto": "1.0.0",
78
- "react-native-reanimated": "4.1.5",
78
+ "react-native-reanimated": "4.2.0",
79
79
  "react-native-restart": "0.0.27",
80
80
  "react-native-safe-area-context": "5.6.2",
81
81
  "react-native-screens": "4.18.0",
@@ -94,7 +94,8 @@
94
94
  "react-native-webview": "13.16.0",
95
95
  "react-native-wgpu": "0.4.1",
96
96
  "react-native-wifi-reborn": "4.13.6",
97
- "react-native-worklets": "0.6.1",
97
+ "react-native-worklets": "0.7.1",
98
98
  "react-native-worklets-core": "1.6.2",
99
- "react-native-zip-archive": "7.0.2"
99
+ "react-native-zip-archive": "7.0.2",
100
+ "react-native": "0.83.0"
100
101
  }