@react-native-community/cli-types 4.10.1 → 5.0.1

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.
@@ -20,6 +20,7 @@ export interface AndroidDependencyConfig {
20
20
  packageInstance: string;
21
21
  manifestPath: string;
22
22
  packageName: string;
23
+ buildTypes: string[];
23
24
  }
24
25
  export declare type AndroidDependencyParams = Partial<AndroidDependencyConfig>;
25
26
  //# sourceMappingURL=android.d.ts.map
package/build/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams, IOSNativeModulesConfig } from './ios';
2
2
  import { AndroidProjectConfig, AndroidProjectParams, AndroidDependencyConfig, AndroidDependencyParams } from './android';
3
- export declare type InquirerPrompt = any;
3
+ import { Ora } from 'ora';
4
+ export declare type Prompt = any;
4
5
  export declare type CommandFunction<Args = Object> = (argv: Array<string>, ctx: Config, args: Args) => Promise<void> | void;
5
6
  export declare type OptionValue = string | boolean | number;
6
7
  export declare type CommandOption<T = (ctx: Config) => OptionValue> = {
@@ -53,13 +54,90 @@ export interface Dependency {
53
54
  preunlink?: string;
54
55
  postunlink?: string;
55
56
  };
56
- params: InquirerPrompt[];
57
+ params: Prompt[];
57
58
  }
58
59
  export declare type ProjectConfig = {
59
60
  android?: AndroidProjectConfig;
60
61
  ios?: IOSProjectConfig;
61
62
  [key: string]: any;
62
63
  };
64
+ export declare type NotFound = 'Not Found';
65
+ declare type AvailableInformation = {
66
+ version: string;
67
+ path: string;
68
+ };
69
+ declare type Information = AvailableInformation | NotFound;
70
+ export declare type EnvironmentInfo = {
71
+ System: {
72
+ OS: string;
73
+ CPU: string;
74
+ Memory: string;
75
+ Shell: AvailableInformation;
76
+ };
77
+ Binaries: {
78
+ Node: AvailableInformation;
79
+ Yarn: AvailableInformation;
80
+ npm: AvailableInformation;
81
+ Watchman: AvailableInformation;
82
+ };
83
+ SDKs: {
84
+ 'iOS SDK': {
85
+ Platforms: string[];
86
+ };
87
+ 'Android SDK': {
88
+ 'API Levels': string[] | NotFound;
89
+ 'Build Tools': string[] | NotFound;
90
+ 'System Images': string[] | NotFound;
91
+ 'Android NDK': string | NotFound;
92
+ } | NotFound;
93
+ };
94
+ IDEs: {
95
+ 'Android Studio': AvailableInformation | NotFound;
96
+ Emacs: AvailableInformation;
97
+ Nano: AvailableInformation;
98
+ VSCode: AvailableInformation;
99
+ Vim: AvailableInformation;
100
+ Xcode: AvailableInformation;
101
+ };
102
+ Languages: {
103
+ Java: Information;
104
+ };
105
+ };
106
+ export declare type HealthCheckCategory = {
107
+ label: string;
108
+ healthchecks: HealthCheckInterface[];
109
+ };
110
+ export declare type Healthchecks = {
111
+ common: HealthCheckCategory;
112
+ android: HealthCheckCategory;
113
+ ios?: HealthCheckCategory;
114
+ };
115
+ export declare type RunAutomaticFix = (args: {
116
+ loader: Ora;
117
+ logManualInstallation: ({ healthcheck, url, command, message, }: {
118
+ healthcheck?: string;
119
+ url?: string;
120
+ command?: string;
121
+ message?: string;
122
+ }) => void;
123
+ environmentInfo: EnvironmentInfo;
124
+ }) => Promise<void> | void;
125
+ export declare type HealthCheckInterface = {
126
+ label: string;
127
+ visible?: boolean | void;
128
+ isRequired?: boolean;
129
+ description?: string;
130
+ getDiagnostics: (environmentInfo: EnvironmentInfo) => Promise<{
131
+ version?: string;
132
+ versions?: [string];
133
+ versionRange?: string;
134
+ needsToBeFixed: boolean | string;
135
+ }>;
136
+ win32AutomaticFix?: RunAutomaticFix;
137
+ darwinAutomaticFix?: RunAutomaticFix;
138
+ linuxAutomaticFix?: RunAutomaticFix;
139
+ runAutomaticFix: RunAutomaticFix;
140
+ };
63
141
  /**
64
142
  * @property root - Root where the configuration has been resolved from
65
143
  * @property reactNativePath - Path to React Native source
@@ -68,6 +146,7 @@ export declare type ProjectConfig = {
68
146
  * @property dependencies - Map of the dependencies that are present in the project
69
147
  * @property platforms - Map of available platforms (build-ins and dynamically loaded)
70
148
  * @property commands - An array of commands that are present in 3rd party packages
149
+ * @property healthChecks - An array of health check categories to add to doctor command
71
150
  */
72
151
  export interface Config extends IOSNativeModulesConfig {
73
152
  root: string;
@@ -83,6 +162,7 @@ export interface Config extends IOSNativeModulesConfig {
83
162
  [name: string]: PlatformConfig<any, any, any, any>;
84
163
  };
85
164
  commands: Command[];
165
+ healthChecks: HealthCheckCategory[];
86
166
  }
87
167
  /**
88
168
  * Shares some structure with Config, except that root is calculated and can't
@@ -100,6 +180,7 @@ export declare type UserDependencyConfig = {
100
180
  dependency: Omit<Dependency, 'name' | 'root'>;
101
181
  commands: Command[];
102
182
  platforms: Config['platforms'];
183
+ healthChecks: HealthCheckCategory[];
103
184
  };
104
185
  export { IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams, IOSNativeModulesConfig, };
105
186
  export { AndroidProjectConfig, AndroidProjectParams, AndroidDependencyConfig, AndroidDependencyParams, };
package/build/ios.d.ts CHANGED
@@ -20,6 +20,7 @@ export interface IOSProjectParams {
20
20
  scriptPhases?: Array<any>;
21
21
  }
22
22
  export interface IOSDependencyParams extends IOSProjectParams {
23
+ configurations?: string[];
23
24
  }
24
25
  export interface IOSProjectConfig {
25
26
  sourceDir: string;
@@ -34,6 +35,7 @@ export interface IOSProjectConfig {
34
35
  plist: Array<any>;
35
36
  }
36
37
  export interface IOSDependencyConfig extends IOSProjectConfig {
38
+ configurations: string[];
37
39
  }
38
40
  /**
39
41
  * @see https://www.rubydoc.info/gems/cocoapods-core/Pod/Podfile/DSL#script_phase-instance_method
package/package.json CHANGED
@@ -1,15 +1,24 @@
1
1
  {
2
2
  "name": "@react-native-community/cli-types",
3
- "version": "4.10.1",
3
+ "version": "5.0.1",
4
4
  "main": "build",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
+ "dependencies": {
9
+ "ora": "^3.4.0"
10
+ },
8
11
  "files": [
9
12
  "build",
10
13
  "!*.map"
11
14
  ],
12
15
  "types": "build/index.d.ts",
13
16
  "license": "MIT",
14
- "gitHead": "f76add94dcfb647dd55b59a5fad9a4d5363962fa"
17
+ "homepage": "https://github.com/react-native-community/cli/tree/master/packages/cli-types",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/react-native-community/cli.git",
21
+ "directory": "packages/cli-types"
22
+ },
23
+ "gitHead": "84e9f0ba54a391db43ee30f1da2824845f6c289e"
15
24
  }