@arkts/image-manager 0.0.2
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/LICENSE +21 -0
- package/README.md +81 -0
- package/dist/default-product-config.cjs +370 -0
- package/dist/default-product-config.d.cts +5 -0
- package/dist/default-product-config.d.mts +6 -0
- package/dist/default-product-config.mjs +369 -0
- package/dist/index.cjs +663 -0
- package/dist/index.d.cts +264 -0
- package/dist/index.d.mts +264 -0
- package/dist/index.mjs +629 -0
- package/dist/product-config-BbaYsaoV.d.mts +250 -0
- package/dist/product-config-Dk21FD9U.d.cts +250 -0
- package/package.json +67 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
//#region src/deployer/list.d.ts
|
|
2
|
+
declare enum DevModel {
|
|
3
|
+
MCHEMU_AL00CN = "MCHEMU-AL00CN",
|
|
4
|
+
PHEMU_FD00 = "PHEMU-FD00",
|
|
5
|
+
PHEMU_FD01 = "PHEMU-FD01",
|
|
6
|
+
PHEMU_FD02 = "PHEMU-FD02",
|
|
7
|
+
PHEMU_FD06 = "PHEMU-FD06",
|
|
8
|
+
PCEMU_FD00 = "PCEMU-FD00",
|
|
9
|
+
PCEMU_FD05 = "PCEMU-FD05"
|
|
10
|
+
}
|
|
11
|
+
type DeployedDevModel = 'MCHEMU-AL00CN' | 'PHEMU-FD00' | 'PHEMU-FD01' | 'PHEMU-FD02' | 'PHEMU-FD06' | 'PCEMU-FD00' | 'PCEMU-FD05' | DevModel | (string & {});
|
|
12
|
+
interface DeployedImageConfig {
|
|
13
|
+
/**
|
|
14
|
+
* Diagonal size.
|
|
15
|
+
*
|
|
16
|
+
* @example '1.6'
|
|
17
|
+
*/
|
|
18
|
+
diagonalSize: string;
|
|
19
|
+
/**
|
|
20
|
+
* Density.
|
|
21
|
+
*
|
|
22
|
+
* @example '320'
|
|
23
|
+
*/
|
|
24
|
+
density: string;
|
|
25
|
+
/**
|
|
26
|
+
* Resolution height.
|
|
27
|
+
*
|
|
28
|
+
* @example '466'
|
|
29
|
+
*/
|
|
30
|
+
resolutionHeight: string;
|
|
31
|
+
/**
|
|
32
|
+
* Resolution width.
|
|
33
|
+
*
|
|
34
|
+
* @example '466'
|
|
35
|
+
*/
|
|
36
|
+
resolutionWidth: string;
|
|
37
|
+
}
|
|
38
|
+
interface DeployedImageConfigWithProductName extends DeployedImageConfig {
|
|
39
|
+
/**
|
|
40
|
+
* The name of the product.
|
|
41
|
+
*
|
|
42
|
+
* @example 'Mate 80 Pro Max、Mate 80 RS'
|
|
43
|
+
*/
|
|
44
|
+
productName: string;
|
|
45
|
+
}
|
|
46
|
+
interface DeployedImageOptions extends DeployedImageConfig {
|
|
47
|
+
/**
|
|
48
|
+
* RAM size.
|
|
49
|
+
*
|
|
50
|
+
* @example '4096'
|
|
51
|
+
*/
|
|
52
|
+
'memoryRamSize': string;
|
|
53
|
+
/**
|
|
54
|
+
* CPU number.
|
|
55
|
+
*
|
|
56
|
+
* @example '4'
|
|
57
|
+
*/
|
|
58
|
+
'cpuNumber': string;
|
|
59
|
+
/**
|
|
60
|
+
* Data disk size.
|
|
61
|
+
*
|
|
62
|
+
* @example '6144'
|
|
63
|
+
*/
|
|
64
|
+
'dataDiskSize': string;
|
|
65
|
+
/**
|
|
66
|
+
* Deployed name.
|
|
67
|
+
*
|
|
68
|
+
* @example 'Huawei_Wearable'
|
|
69
|
+
*/
|
|
70
|
+
'name': string;
|
|
71
|
+
/**
|
|
72
|
+
* UUID.
|
|
73
|
+
*
|
|
74
|
+
* @example 'ce454934-3a1b-4770-9838-dc85c5d7b6c1'
|
|
75
|
+
*/
|
|
76
|
+
'uuid': string;
|
|
77
|
+
/**
|
|
78
|
+
* OpenHarmony/HarmonyOS version.
|
|
79
|
+
*
|
|
80
|
+
* @example '6.0.1'
|
|
81
|
+
*/
|
|
82
|
+
'hw.apiName': string;
|
|
83
|
+
/**
|
|
84
|
+
* Device model.
|
|
85
|
+
*
|
|
86
|
+
* @example 'MCHEMU-AL00CN'
|
|
87
|
+
*/
|
|
88
|
+
'devModel'?: DeployedDevModel;
|
|
89
|
+
/**
|
|
90
|
+
* Model.
|
|
91
|
+
*
|
|
92
|
+
* @example 'Mate 80 Pro Max、Mate 80 RS'
|
|
93
|
+
*/
|
|
94
|
+
'model': string;
|
|
95
|
+
}
|
|
96
|
+
interface FullDeployedImageOptions extends DeployedImageOptions {
|
|
97
|
+
/**
|
|
98
|
+
* Image directory.
|
|
99
|
+
*
|
|
100
|
+
* @example 'system-image/HarmonyOS-6.0.1/wearable_arm/'
|
|
101
|
+
*/
|
|
102
|
+
'imageDir': string;
|
|
103
|
+
/**
|
|
104
|
+
* Image SDK version.
|
|
105
|
+
*
|
|
106
|
+
* @example '6.0.0.112'
|
|
107
|
+
*/
|
|
108
|
+
'version': string;
|
|
109
|
+
/**
|
|
110
|
+
* Device type.
|
|
111
|
+
*
|
|
112
|
+
* @example 'wearable', 'phone', 'tablet'
|
|
113
|
+
*/
|
|
114
|
+
'type': 'wearable' | 'phone' | 'tablet' | '2in1' | 'tv' | (string & {});
|
|
115
|
+
/**
|
|
116
|
+
* Architecture.
|
|
117
|
+
*
|
|
118
|
+
* @example 'arm'
|
|
119
|
+
*/
|
|
120
|
+
'abi': string;
|
|
121
|
+
/**
|
|
122
|
+
* API version.
|
|
123
|
+
*
|
|
124
|
+
* @example '21'
|
|
125
|
+
*/
|
|
126
|
+
'apiVersion': string;
|
|
127
|
+
/**
|
|
128
|
+
* Deployed path.
|
|
129
|
+
*
|
|
130
|
+
* @example '/Users/xxx/.Huawei/Emulator/deployed/Huawei_Wearable'
|
|
131
|
+
*/
|
|
132
|
+
'path': string;
|
|
133
|
+
/**
|
|
134
|
+
* Show version.
|
|
135
|
+
*
|
|
136
|
+
* @example 'HarmonyOS 6.0.1(21)'
|
|
137
|
+
*/
|
|
138
|
+
'showVersion': string;
|
|
139
|
+
/**
|
|
140
|
+
* HarmonyOS version.
|
|
141
|
+
*
|
|
142
|
+
* @example 'HarmonyOS-6.0.1'
|
|
143
|
+
*/
|
|
144
|
+
'harmonyOSVersion': string;
|
|
145
|
+
/**
|
|
146
|
+
* Cover resolution width.
|
|
147
|
+
*
|
|
148
|
+
* @example '2472'
|
|
149
|
+
*/
|
|
150
|
+
'coverResolutionWidth'?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Cover resolution height.
|
|
153
|
+
*
|
|
154
|
+
* @example '1648'
|
|
155
|
+
*/
|
|
156
|
+
'coverResolutionHeight'?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Cover diagonal size.
|
|
159
|
+
*
|
|
160
|
+
* @example '13.0'
|
|
161
|
+
*/
|
|
162
|
+
'coverDiagonalSize'?: string;
|
|
163
|
+
/**
|
|
164
|
+
* HarmonyOS SDK path.
|
|
165
|
+
*
|
|
166
|
+
* @example '/Applications/DevEco-Studio.app/Contents/sdk'
|
|
167
|
+
*/
|
|
168
|
+
'harmonyos.sdk.path': string;
|
|
169
|
+
/**
|
|
170
|
+
* HarmonyOS config path.
|
|
171
|
+
*
|
|
172
|
+
* @example '/Users/xxx/Library/Application Support/Huawei/DevEcoStudio6.0'
|
|
173
|
+
*/
|
|
174
|
+
'harmonyos.config.path': string;
|
|
175
|
+
/**
|
|
176
|
+
* HarmonyOS log path.
|
|
177
|
+
*
|
|
178
|
+
* @example '/Users/xxx/Library/Logs/Huawei/DevEcoStudio6.0'
|
|
179
|
+
*/
|
|
180
|
+
'harmonyos.log.path': string;
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/types.d.ts
|
|
184
|
+
interface Stringifiable<T> {
|
|
185
|
+
toJSON(): T;
|
|
186
|
+
}
|
|
187
|
+
type OS = 'windows' | 'mac' | 'linux';
|
|
188
|
+
type Arch = 'x86' | 'arm64';
|
|
189
|
+
type DeviceType = 'pc' | 'phone' | 'tablet' | 'wearable' | 'tv' | 'foldable' | 'widefold' | '2in1';
|
|
190
|
+
type SnakecaseDeviceType = 'phone' | 'tablet' | '2in1' | 'foldable' | 'widefold' | 'triplefold' | '2in1_foldable' | 'tv' | 'wearable';
|
|
191
|
+
type PascalCaseDeviceType = 'Phone' | 'Tablet' | '2in1' | 'Foldable' | 'WideFold' | 'TripleFold' | '2in1 Foldable' | 'TV' | 'Wearable';
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/product-config.d.ts
|
|
194
|
+
interface ProductConfigItem {
|
|
195
|
+
/**
|
|
196
|
+
* The name of the product.
|
|
197
|
+
*/
|
|
198
|
+
name: string;
|
|
199
|
+
/**
|
|
200
|
+
* The screen width of the product.
|
|
201
|
+
*/
|
|
202
|
+
screenWidth: string;
|
|
203
|
+
/**
|
|
204
|
+
* The screen height of the product.
|
|
205
|
+
*/
|
|
206
|
+
screenHeight: string;
|
|
207
|
+
/**
|
|
208
|
+
* The screen diagonal of the product.
|
|
209
|
+
*/
|
|
210
|
+
screenDiagonal: string;
|
|
211
|
+
/**
|
|
212
|
+
* The screen density of the product.
|
|
213
|
+
*/
|
|
214
|
+
screenDensity: string;
|
|
215
|
+
/**
|
|
216
|
+
* The outer screen width of the product.
|
|
217
|
+
*/
|
|
218
|
+
outerScreenWidth?: string;
|
|
219
|
+
/**
|
|
220
|
+
* The outer screen height of the product.
|
|
221
|
+
*/
|
|
222
|
+
outerDoubleScreenWidth?: string;
|
|
223
|
+
/**
|
|
224
|
+
* The outer double screen height of the product.
|
|
225
|
+
*/
|
|
226
|
+
outerDoubleScreenHeight?: string;
|
|
227
|
+
/**
|
|
228
|
+
* The outer double screen diagonal of the product.
|
|
229
|
+
*/
|
|
230
|
+
outerDoubleScreenDiagonal?: string;
|
|
231
|
+
/**
|
|
232
|
+
* The outer screen height of the product.
|
|
233
|
+
*/
|
|
234
|
+
outerScreenHeight?: string;
|
|
235
|
+
/**
|
|
236
|
+
* The outer screen diagonal of the product.
|
|
237
|
+
*/
|
|
238
|
+
outerScreenDiagonal?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Whether the product is visible.
|
|
241
|
+
*/
|
|
242
|
+
visible: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* The dev model of the product.
|
|
245
|
+
*/
|
|
246
|
+
devModel?: string;
|
|
247
|
+
}
|
|
248
|
+
type ProductConfig = Record<PascalCaseDeviceType, ProductConfigItem[]>;
|
|
249
|
+
//#endregion
|
|
250
|
+
export { OS as a, Stringifiable as c, DeployedImageConfigWithProductName as d, DeployedImageOptions as f, DeviceType as i, DeployedDevModel as l, FullDeployedImageOptions as m, ProductConfigItem as n, PascalCaseDeviceType as o, DevModel as p, Arch as r, SnakecaseDeviceType as s, ProductConfig as t, DeployedImageConfig as u };
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
//#region src/deployer/list.d.ts
|
|
2
|
+
declare enum DevModel {
|
|
3
|
+
MCHEMU_AL00CN = "MCHEMU-AL00CN",
|
|
4
|
+
PHEMU_FD00 = "PHEMU-FD00",
|
|
5
|
+
PHEMU_FD01 = "PHEMU-FD01",
|
|
6
|
+
PHEMU_FD02 = "PHEMU-FD02",
|
|
7
|
+
PHEMU_FD06 = "PHEMU-FD06",
|
|
8
|
+
PCEMU_FD00 = "PCEMU-FD00",
|
|
9
|
+
PCEMU_FD05 = "PCEMU-FD05"
|
|
10
|
+
}
|
|
11
|
+
type DeployedDevModel = 'MCHEMU-AL00CN' | 'PHEMU-FD00' | 'PHEMU-FD01' | 'PHEMU-FD02' | 'PHEMU-FD06' | 'PCEMU-FD00' | 'PCEMU-FD05' | DevModel | (string & {});
|
|
12
|
+
interface DeployedImageConfig {
|
|
13
|
+
/**
|
|
14
|
+
* Diagonal size.
|
|
15
|
+
*
|
|
16
|
+
* @example '1.6'
|
|
17
|
+
*/
|
|
18
|
+
diagonalSize: string;
|
|
19
|
+
/**
|
|
20
|
+
* Density.
|
|
21
|
+
*
|
|
22
|
+
* @example '320'
|
|
23
|
+
*/
|
|
24
|
+
density: string;
|
|
25
|
+
/**
|
|
26
|
+
* Resolution height.
|
|
27
|
+
*
|
|
28
|
+
* @example '466'
|
|
29
|
+
*/
|
|
30
|
+
resolutionHeight: string;
|
|
31
|
+
/**
|
|
32
|
+
* Resolution width.
|
|
33
|
+
*
|
|
34
|
+
* @example '466'
|
|
35
|
+
*/
|
|
36
|
+
resolutionWidth: string;
|
|
37
|
+
}
|
|
38
|
+
interface DeployedImageConfigWithProductName extends DeployedImageConfig {
|
|
39
|
+
/**
|
|
40
|
+
* The name of the product.
|
|
41
|
+
*
|
|
42
|
+
* @example 'Mate 80 Pro Max、Mate 80 RS'
|
|
43
|
+
*/
|
|
44
|
+
productName: string;
|
|
45
|
+
}
|
|
46
|
+
interface DeployedImageOptions extends DeployedImageConfig {
|
|
47
|
+
/**
|
|
48
|
+
* RAM size.
|
|
49
|
+
*
|
|
50
|
+
* @example '4096'
|
|
51
|
+
*/
|
|
52
|
+
'memoryRamSize': string;
|
|
53
|
+
/**
|
|
54
|
+
* CPU number.
|
|
55
|
+
*
|
|
56
|
+
* @example '4'
|
|
57
|
+
*/
|
|
58
|
+
'cpuNumber': string;
|
|
59
|
+
/**
|
|
60
|
+
* Data disk size.
|
|
61
|
+
*
|
|
62
|
+
* @example '6144'
|
|
63
|
+
*/
|
|
64
|
+
'dataDiskSize': string;
|
|
65
|
+
/**
|
|
66
|
+
* Deployed name.
|
|
67
|
+
*
|
|
68
|
+
* @example 'Huawei_Wearable'
|
|
69
|
+
*/
|
|
70
|
+
'name': string;
|
|
71
|
+
/**
|
|
72
|
+
* UUID.
|
|
73
|
+
*
|
|
74
|
+
* @example 'ce454934-3a1b-4770-9838-dc85c5d7b6c1'
|
|
75
|
+
*/
|
|
76
|
+
'uuid': string;
|
|
77
|
+
/**
|
|
78
|
+
* OpenHarmony/HarmonyOS version.
|
|
79
|
+
*
|
|
80
|
+
* @example '6.0.1'
|
|
81
|
+
*/
|
|
82
|
+
'hw.apiName': string;
|
|
83
|
+
/**
|
|
84
|
+
* Device model.
|
|
85
|
+
*
|
|
86
|
+
* @example 'MCHEMU-AL00CN'
|
|
87
|
+
*/
|
|
88
|
+
'devModel'?: DeployedDevModel;
|
|
89
|
+
/**
|
|
90
|
+
* Model.
|
|
91
|
+
*
|
|
92
|
+
* @example 'Mate 80 Pro Max、Mate 80 RS'
|
|
93
|
+
*/
|
|
94
|
+
'model': string;
|
|
95
|
+
}
|
|
96
|
+
interface FullDeployedImageOptions extends DeployedImageOptions {
|
|
97
|
+
/**
|
|
98
|
+
* Image directory.
|
|
99
|
+
*
|
|
100
|
+
* @example 'system-image/HarmonyOS-6.0.1/wearable_arm/'
|
|
101
|
+
*/
|
|
102
|
+
'imageDir': string;
|
|
103
|
+
/**
|
|
104
|
+
* Image SDK version.
|
|
105
|
+
*
|
|
106
|
+
* @example '6.0.0.112'
|
|
107
|
+
*/
|
|
108
|
+
'version': string;
|
|
109
|
+
/**
|
|
110
|
+
* Device type.
|
|
111
|
+
*
|
|
112
|
+
* @example 'wearable', 'phone', 'tablet'
|
|
113
|
+
*/
|
|
114
|
+
'type': 'wearable' | 'phone' | 'tablet' | '2in1' | 'tv' | (string & {});
|
|
115
|
+
/**
|
|
116
|
+
* Architecture.
|
|
117
|
+
*
|
|
118
|
+
* @example 'arm'
|
|
119
|
+
*/
|
|
120
|
+
'abi': string;
|
|
121
|
+
/**
|
|
122
|
+
* API version.
|
|
123
|
+
*
|
|
124
|
+
* @example '21'
|
|
125
|
+
*/
|
|
126
|
+
'apiVersion': string;
|
|
127
|
+
/**
|
|
128
|
+
* Deployed path.
|
|
129
|
+
*
|
|
130
|
+
* @example '/Users/xxx/.Huawei/Emulator/deployed/Huawei_Wearable'
|
|
131
|
+
*/
|
|
132
|
+
'path': string;
|
|
133
|
+
/**
|
|
134
|
+
* Show version.
|
|
135
|
+
*
|
|
136
|
+
* @example 'HarmonyOS 6.0.1(21)'
|
|
137
|
+
*/
|
|
138
|
+
'showVersion': string;
|
|
139
|
+
/**
|
|
140
|
+
* HarmonyOS version.
|
|
141
|
+
*
|
|
142
|
+
* @example 'HarmonyOS-6.0.1'
|
|
143
|
+
*/
|
|
144
|
+
'harmonyOSVersion': string;
|
|
145
|
+
/**
|
|
146
|
+
* Cover resolution width.
|
|
147
|
+
*
|
|
148
|
+
* @example '2472'
|
|
149
|
+
*/
|
|
150
|
+
'coverResolutionWidth'?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Cover resolution height.
|
|
153
|
+
*
|
|
154
|
+
* @example '1648'
|
|
155
|
+
*/
|
|
156
|
+
'coverResolutionHeight'?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Cover diagonal size.
|
|
159
|
+
*
|
|
160
|
+
* @example '13.0'
|
|
161
|
+
*/
|
|
162
|
+
'coverDiagonalSize'?: string;
|
|
163
|
+
/**
|
|
164
|
+
* HarmonyOS SDK path.
|
|
165
|
+
*
|
|
166
|
+
* @example '/Applications/DevEco-Studio.app/Contents/sdk'
|
|
167
|
+
*/
|
|
168
|
+
'harmonyos.sdk.path': string;
|
|
169
|
+
/**
|
|
170
|
+
* HarmonyOS config path.
|
|
171
|
+
*
|
|
172
|
+
* @example '/Users/xxx/Library/Application Support/Huawei/DevEcoStudio6.0'
|
|
173
|
+
*/
|
|
174
|
+
'harmonyos.config.path': string;
|
|
175
|
+
/**
|
|
176
|
+
* HarmonyOS log path.
|
|
177
|
+
*
|
|
178
|
+
* @example '/Users/xxx/Library/Logs/Huawei/DevEcoStudio6.0'
|
|
179
|
+
*/
|
|
180
|
+
'harmonyos.log.path': string;
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/types.d.ts
|
|
184
|
+
interface Stringifiable<T> {
|
|
185
|
+
toJSON(): T;
|
|
186
|
+
}
|
|
187
|
+
type OS = 'windows' | 'mac' | 'linux';
|
|
188
|
+
type Arch = 'x86' | 'arm64';
|
|
189
|
+
type DeviceType = 'pc' | 'phone' | 'tablet' | 'wearable' | 'tv' | 'foldable' | 'widefold' | '2in1';
|
|
190
|
+
type SnakecaseDeviceType = 'phone' | 'tablet' | '2in1' | 'foldable' | 'widefold' | 'triplefold' | '2in1_foldable' | 'tv' | 'wearable';
|
|
191
|
+
type PascalCaseDeviceType = 'Phone' | 'Tablet' | '2in1' | 'Foldable' | 'WideFold' | 'TripleFold' | '2in1 Foldable' | 'TV' | 'Wearable';
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/product-config.d.ts
|
|
194
|
+
interface ProductConfigItem {
|
|
195
|
+
/**
|
|
196
|
+
* The name of the product.
|
|
197
|
+
*/
|
|
198
|
+
name: string;
|
|
199
|
+
/**
|
|
200
|
+
* The screen width of the product.
|
|
201
|
+
*/
|
|
202
|
+
screenWidth: string;
|
|
203
|
+
/**
|
|
204
|
+
* The screen height of the product.
|
|
205
|
+
*/
|
|
206
|
+
screenHeight: string;
|
|
207
|
+
/**
|
|
208
|
+
* The screen diagonal of the product.
|
|
209
|
+
*/
|
|
210
|
+
screenDiagonal: string;
|
|
211
|
+
/**
|
|
212
|
+
* The screen density of the product.
|
|
213
|
+
*/
|
|
214
|
+
screenDensity: string;
|
|
215
|
+
/**
|
|
216
|
+
* The outer screen width of the product.
|
|
217
|
+
*/
|
|
218
|
+
outerScreenWidth?: string;
|
|
219
|
+
/**
|
|
220
|
+
* The outer screen height of the product.
|
|
221
|
+
*/
|
|
222
|
+
outerDoubleScreenWidth?: string;
|
|
223
|
+
/**
|
|
224
|
+
* The outer double screen height of the product.
|
|
225
|
+
*/
|
|
226
|
+
outerDoubleScreenHeight?: string;
|
|
227
|
+
/**
|
|
228
|
+
* The outer double screen diagonal of the product.
|
|
229
|
+
*/
|
|
230
|
+
outerDoubleScreenDiagonal?: string;
|
|
231
|
+
/**
|
|
232
|
+
* The outer screen height of the product.
|
|
233
|
+
*/
|
|
234
|
+
outerScreenHeight?: string;
|
|
235
|
+
/**
|
|
236
|
+
* The outer screen diagonal of the product.
|
|
237
|
+
*/
|
|
238
|
+
outerScreenDiagonal?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Whether the product is visible.
|
|
241
|
+
*/
|
|
242
|
+
visible: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* The dev model of the product.
|
|
245
|
+
*/
|
|
246
|
+
devModel?: string;
|
|
247
|
+
}
|
|
248
|
+
type ProductConfig = Record<PascalCaseDeviceType, ProductConfigItem[]>;
|
|
249
|
+
//#endregion
|
|
250
|
+
export { OS as a, Stringifiable as c, DeployedImageConfigWithProductName as d, DeployedImageOptions as f, DeviceType as i, DeployedDevModel as l, FullDeployedImageOptions as m, ProductConfigItem as n, PascalCaseDeviceType as o, DevModel as p, Arch as r, SnakecaseDeviceType as s, ProductConfig as t, DeployedImageConfig as u };
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@arkts/image-manager",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"description": "OpenHarmony/HarmonyOS qemu image manager.",
|
|
6
|
+
"author": "Naily Zero <zero@naily.cc> (https://naily.cc)",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/ohosvscode/image-manager",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/ohosvscode/image-manager"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/ohosvscode/image-manager/issues",
|
|
15
|
+
"email": "zero@naily.cc"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"openharmony",
|
|
19
|
+
"harmonyos",
|
|
20
|
+
"qemu",
|
|
21
|
+
"arkts"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": {
|
|
29
|
+
"import": "./dist/index.d.mts",
|
|
30
|
+
"require": "./dist/index.d.cts"
|
|
31
|
+
},
|
|
32
|
+
"import": "./dist/index.mjs",
|
|
33
|
+
"require": "./dist/index.cjs"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"main": "dist/index.cjs",
|
|
37
|
+
"module": "dist/index.mjs",
|
|
38
|
+
"types": "dist/index.d.cts",
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@types/progress-stream": "^2.0.5",
|
|
44
|
+
"@types/unzipper": "^0.10.11",
|
|
45
|
+
"axios": "^1.13.4",
|
|
46
|
+
"mitt": "^3.0.1",
|
|
47
|
+
"progress-stream": "^2.0.0",
|
|
48
|
+
"unzipper": "^0.12.3"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@antfu/eslint-config": "^7.2.0",
|
|
52
|
+
"@changesets/cli": "^2.29.8",
|
|
53
|
+
"@types/node": "^25.2.0",
|
|
54
|
+
"@vitest/coverage-v8": "4.0.18",
|
|
55
|
+
"@vitest/ui": "4.0.18",
|
|
56
|
+
"eslint": "^9.39.2",
|
|
57
|
+
"pnpm": "^10.28.2",
|
|
58
|
+
"tsdown": "^0.20.2",
|
|
59
|
+
"typescript": "^5.9.3",
|
|
60
|
+
"vitest": "^4.0.18"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "tsdown --dts --format esm,cjs src/index.ts src/default-product-config.ts",
|
|
64
|
+
"test": "vitest --coverage --ui",
|
|
65
|
+
"lint": "eslint ."
|
|
66
|
+
}
|
|
67
|
+
}
|