react-native-update-cli 2.7.3 → 2.8.0
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/lib/bundle.js +3 -2
- package/package.json +25 -6
- package/src/bundle.ts +2 -2
package/lib/bundle.js
CHANGED
|
@@ -81,6 +81,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
81
81
|
}
|
|
82
82
|
return newObj;
|
|
83
83
|
}
|
|
84
|
+
var _loadDiffModule;
|
|
84
85
|
const g2js = require('gradle-to-js/lib/parser');
|
|
85
86
|
const properties = require('properties');
|
|
86
87
|
const loadDiffModule = (pkgName)=>{
|
|
@@ -100,11 +101,11 @@ const loadDiffModule = (pkgName)=>{
|
|
|
100
101
|
} catch (e) {}
|
|
101
102
|
return undefined;
|
|
102
103
|
};
|
|
103
|
-
let bsdiff;
|
|
104
104
|
let hdiff;
|
|
105
|
+
hdiff = (_loadDiffModule = loadDiffModule('node-hdiffpatch')) == null ? void 0 : _loadDiffModule.diff;
|
|
106
|
+
let bsdiff;
|
|
105
107
|
let diff;
|
|
106
108
|
bsdiff = loadDiffModule('node-bsdiff');
|
|
107
|
-
hdiff = loadDiffModule('node-hdiffpatch');
|
|
108
109
|
async function runReactNativeBundleCommand({ bundleName, dev, entryFile, outputFolder, platform, sourcemapOutput, config, forceHermes, cli }) {
|
|
109
110
|
let gradleConfig = {};
|
|
110
111
|
if (platform === 'android') {
|
package/package.json
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-update-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "command line tool for react-native-update (remote updates for react native)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pushy": "lib/index.js",
|
|
8
8
|
"cresc": "lib/index.js"
|
|
9
9
|
},
|
|
10
|
-
"files": [
|
|
10
|
+
"files": [
|
|
11
|
+
"lib",
|
|
12
|
+
"src",
|
|
13
|
+
"proto",
|
|
14
|
+
"cli.json"
|
|
15
|
+
],
|
|
11
16
|
"scripts": {
|
|
12
17
|
"build": "swc src -d lib --strip-leading-paths",
|
|
13
|
-
"prepublishOnly": "
|
|
18
|
+
"prepublishOnly": "bun scripts/prepublish.js && bun run build && chmod +x lib/index.js",
|
|
14
19
|
"lint": "tsc --noEmit & biome check --write ."
|
|
15
20
|
},
|
|
16
21
|
"repository": {
|
|
17
22
|
"type": "git",
|
|
18
23
|
"url": "git+https://github.com/reactnativecn/react-native-update-cli.git"
|
|
19
24
|
},
|
|
20
|
-
"keywords": [
|
|
25
|
+
"keywords": [
|
|
26
|
+
"react-native",
|
|
27
|
+
"ios",
|
|
28
|
+
"android",
|
|
29
|
+
"harmony",
|
|
30
|
+
"update"
|
|
31
|
+
],
|
|
21
32
|
"author": "reactnativecn",
|
|
22
33
|
"license": "BSD-3-Clause",
|
|
23
34
|
"bugs": {
|
|
@@ -61,6 +72,7 @@
|
|
|
61
72
|
"@biomejs/biome": "^1.9.4",
|
|
62
73
|
"@swc/cli": "0.7.7",
|
|
63
74
|
"@swc/core": "^1.11.24",
|
|
75
|
+
"@types/bun": "^1.3.8",
|
|
64
76
|
"@types/filesize-parser": "^1.5.3",
|
|
65
77
|
"@types/fs-extra": "^11.0.4",
|
|
66
78
|
"@types/node": "^22.15.18",
|
|
@@ -72,5 +84,12 @@
|
|
|
72
84
|
"@types/yazl": "^2.4.6",
|
|
73
85
|
"typescript": "^5.8.3"
|
|
74
86
|
},
|
|
75
|
-
"
|
|
76
|
-
|
|
87
|
+
"optionalDependencies": {
|
|
88
|
+
"node-hdiffpatch": "^1.2.1"
|
|
89
|
+
},
|
|
90
|
+
"trustedDependencies": [
|
|
91
|
+
"@biomejs/biome",
|
|
92
|
+
"@swc/core",
|
|
93
|
+
"node-hdiffpatch"
|
|
94
|
+
]
|
|
95
|
+
}
|
package/src/bundle.ts
CHANGED
|
@@ -38,11 +38,11 @@ const loadDiffModule = (pkgName: string): Diff | undefined => {
|
|
|
38
38
|
return undefined;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
let bsdiff: Diff | undefined;
|
|
42
41
|
let hdiff: Diff | undefined;
|
|
42
|
+
hdiff = (loadDiffModule('node-hdiffpatch') as any)?.diff;
|
|
43
|
+
let bsdiff: Diff | undefined;
|
|
43
44
|
let diff: Diff;
|
|
44
45
|
bsdiff = loadDiffModule('node-bsdiff');
|
|
45
|
-
hdiff = loadDiffModule('node-hdiffpatch');
|
|
46
46
|
|
|
47
47
|
async function runReactNativeBundleCommand({
|
|
48
48
|
bundleName,
|