@capgo/cli 7.71.0 → 7.71.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/README.md +26 -0
- package/dist/index.js +211 -207
- package/dist/package.json +1 -1
- package/dist/src/bundle/compatibility.d.ts +2 -0
- package/dist/src/bundle/releaseType.d.ts +20 -0
- package/dist/src/sdk.js +98 -98
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -8,6 +8,8 @@ interface Options extends OptionsBase {
|
|
|
8
8
|
interface CompatibilityResult {
|
|
9
9
|
finalCompatibility: Compatibility[];
|
|
10
10
|
hasIncompatible: boolean;
|
|
11
|
+
resolvedAppId: string;
|
|
12
|
+
channel: string;
|
|
11
13
|
}
|
|
12
14
|
export declare function checkCompatibilityInternal(appId: string, options: Options, silent?: boolean): Promise<CompatibilityResult>;
|
|
13
15
|
export declare function checkCompatibility(appId: string, options: Options): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { OptionsBase } from '../utils';
|
|
2
|
+
interface Options extends OptionsBase {
|
|
3
|
+
channel?: string;
|
|
4
|
+
packageJson?: string;
|
|
5
|
+
nodeModules?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ReleaseTypeResult {
|
|
8
|
+
releaseType: 'native' | 'OTA';
|
|
9
|
+
resolvedAppId: string;
|
|
10
|
+
channel: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Determine whether a native build or OTA update is recommended.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getReleaseType(appId: string, options: Options): Promise<ReleaseTypeResult>;
|
|
16
|
+
/**
|
|
17
|
+
* Print the recommended release type and the relevant CLI commands.
|
|
18
|
+
*/
|
|
19
|
+
export declare function printReleaseType(appId: string, options: Options): Promise<void>;
|
|
20
|
+
export {};
|