@capgo/cli 8.32.2 → 8.32.4
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/dist/index.js +590 -578
- package/dist/package.json +1 -1
- package/dist/src/init/channel-conflict.d.ts +1 -0
- package/dist/src/init/command.d.ts +9 -1
- package/dist/src/schemas/common.d.ts +2 -0
- package/dist/src/sdk.js +4 -4
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isChannelAlreadyExistsError(error: unknown): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Options } from '../api/app';
|
|
2
2
|
import { spawnSync } from 'node:child_process';
|
|
3
|
-
import { getPMAndCommand } from '../utils';
|
|
3
|
+
import { getConfig, getPMAndCommand } from '../utils';
|
|
4
4
|
interface SuperOptions extends Options {
|
|
5
5
|
analytics?: boolean;
|
|
6
6
|
capacitorConfig?: string;
|
|
@@ -15,6 +15,7 @@ interface InitTargetPaths {
|
|
|
15
15
|
mainFilePath?: string;
|
|
16
16
|
}
|
|
17
17
|
export type RunDeviceCancelHandler = () => Promise<never>;
|
|
18
|
+
type CapacitorConfigSnapshot = Awaited<ReturnType<typeof getConfig>>['config'];
|
|
18
19
|
type InitAutoTestChangeKind = 'html-banner' | 'vue-banner' | 'css-background';
|
|
19
20
|
type DirtyGitStatusAction = 'check-again' | 'continue-dirty';
|
|
20
21
|
interface GitRepoStatus {
|
|
@@ -31,6 +32,12 @@ interface InitAutoTestChange {
|
|
|
31
32
|
}
|
|
32
33
|
export declare function resolveInitTargetPath(value: string | undefined, label: string, initialCwd?: string): string | undefined;
|
|
33
34
|
export declare function resolveResumedInitTargets(currentTargets: InitTargetPaths, savedTargets: Partial<InitTargetPaths>, initialCwd?: string): InitTargetPaths | undefined;
|
|
35
|
+
export declare function getNativePlatformAvailability(config?: CapacitorConfigSnapshot, rootDir?: string): {
|
|
36
|
+
iosDir: string;
|
|
37
|
+
androidDir: string;
|
|
38
|
+
ios: boolean;
|
|
39
|
+
android: boolean;
|
|
40
|
+
};
|
|
34
41
|
export declare function getGitRepoStatus(startDir?: string): GitRepoStatus;
|
|
35
42
|
export declare function getInitUpdaterPluginConfig(appId: string, directInstall: boolean): {
|
|
36
43
|
autoSplashscreen?: boolean | undefined;
|
|
@@ -51,6 +58,7 @@ export declare function getDirtyGitStatusActionOptions(): {
|
|
|
51
58
|
label: string;
|
|
52
59
|
hint: string;
|
|
53
60
|
}[];
|
|
61
|
+
export declare function injectInitCode(filePath: string, currentContent: string): string;
|
|
54
62
|
type PackageManagerInfo = ReturnType<typeof getPMAndCommand>;
|
|
55
63
|
export type PlatformChoice = 'ios' | 'android';
|
|
56
64
|
export type RunDeviceStepOutcome = {
|
|
@@ -16,6 +16,7 @@ export declare const incompatibilityReasonSchema: z.ZodEnum<{
|
|
|
16
16
|
ios_code_changed: "ios_code_changed";
|
|
17
17
|
android_code_changed: "android_code_changed";
|
|
18
18
|
both_platforms_changed: "both_platforms_changed";
|
|
19
|
+
platform_checksum_metadata_changed: "platform_checksum_metadata_changed";
|
|
19
20
|
}>;
|
|
20
21
|
export type IncompatibilityReason = z.infer<typeof incompatibilityReasonSchema>;
|
|
21
22
|
export declare const compatibilitySchema: z.ZodObject<{
|
|
@@ -40,6 +41,7 @@ export declare const compatibilityDetailsSchema: z.ZodObject<{
|
|
|
40
41
|
ios_code_changed: "ios_code_changed";
|
|
41
42
|
android_code_changed: "android_code_changed";
|
|
42
43
|
both_platforms_changed: "both_platforms_changed";
|
|
44
|
+
platform_checksum_metadata_changed: "platform_checksum_metadata_changed";
|
|
43
45
|
}>>;
|
|
44
46
|
message: z.ZodString;
|
|
45
47
|
}, z.core.$strip>;
|