@react-native-community/cli-types
Advanced tools
Comparing version 4.10.1 to 5.0.0-alpha.0
import { IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams, IOSNativeModulesConfig } from './ios'; | ||
import { AndroidProjectConfig, AndroidProjectParams, AndroidDependencyConfig, AndroidDependencyParams } from './android'; | ||
import { Ora } from 'ora'; | ||
export declare type InquirerPrompt = any; | ||
@@ -63,2 +64,79 @@ export declare type CommandFunction<Args = Object> = (argv: Array<string>, ctx: Config, args: Args) => Promise<void> | void; | ||
}; | ||
export declare type NotFound = 'Not Found'; | ||
declare type AvailableInformation = { | ||
version: string; | ||
path: string; | ||
}; | ||
declare type Information = AvailableInformation | NotFound; | ||
export declare type EnvironmentInfo = { | ||
System: { | ||
OS: string; | ||
CPU: string; | ||
Memory: string; | ||
Shell: AvailableInformation; | ||
}; | ||
Binaries: { | ||
Node: AvailableInformation; | ||
Yarn: AvailableInformation; | ||
npm: AvailableInformation; | ||
Watchman: AvailableInformation; | ||
}; | ||
SDKs: { | ||
'iOS SDK': { | ||
Platforms: string[]; | ||
}; | ||
'Android SDK': { | ||
'API Levels': string[] | NotFound; | ||
'Build Tools': string[] | NotFound; | ||
'System Images': string[] | NotFound; | ||
'Android NDK': string | NotFound; | ||
} | NotFound; | ||
}; | ||
IDEs: { | ||
'Android Studio': AvailableInformation | NotFound; | ||
Emacs: AvailableInformation; | ||
Nano: AvailableInformation; | ||
VSCode: AvailableInformation; | ||
Vim: AvailableInformation; | ||
Xcode: AvailableInformation; | ||
}; | ||
Languages: { | ||
Java: Information; | ||
}; | ||
}; | ||
export declare type HealthCheckCategory = { | ||
label: string; | ||
healthchecks: HealthCheckInterface[]; | ||
}; | ||
export declare type Healthchecks = { | ||
common: HealthCheckCategory; | ||
android: HealthCheckCategory; | ||
ios?: HealthCheckCategory; | ||
}; | ||
export declare type RunAutomaticFix = (args: { | ||
loader: Ora; | ||
logManualInstallation: ({ healthcheck, url, command, message, }: { | ||
healthcheck?: string; | ||
url?: string; | ||
command?: string; | ||
message?: string; | ||
}) => void; | ||
environmentInfo: EnvironmentInfo; | ||
}) => Promise<void> | void; | ||
export declare type HealthCheckInterface = { | ||
label: string; | ||
visible?: boolean | void; | ||
isRequired?: boolean; | ||
description?: string; | ||
getDiagnostics: (environmentInfo: EnvironmentInfo) => Promise<{ | ||
version?: string; | ||
versions?: [string]; | ||
versionRange?: string; | ||
needsToBeFixed: boolean | string; | ||
}>; | ||
win32AutomaticFix?: RunAutomaticFix; | ||
darwinAutomaticFix?: RunAutomaticFix; | ||
linuxAutomaticFix?: RunAutomaticFix; | ||
runAutomaticFix: RunAutomaticFix; | ||
}; | ||
/** | ||
@@ -72,2 +150,3 @@ * @property root - Root where the configuration has been resolved from | ||
* @property commands - An array of commands that are present in 3rd party packages | ||
* @property healthChecks - An array of health check categories to add to doctor command | ||
*/ | ||
@@ -88,2 +167,3 @@ export interface Config extends IOSNativeModulesConfig { | ||
commands: Command[]; | ||
healthChecks: HealthCheckCategory[]; | ||
} | ||
@@ -106,2 +186,3 @@ /** | ||
platforms: Config['platforms']; | ||
healthChecks: HealthCheckCategory[]; | ||
}; | ||
@@ -108,0 +189,0 @@ export { IOSProjectConfig, IOSProjectParams, IOSDependencyConfig, IOSDependencyParams, IOSNativeModulesConfig, }; |
{ | ||
"name": "@react-native-community/cli-types", | ||
"version": "4.10.1", | ||
"version": "5.0.0-alpha.0", | ||
"main": "build", | ||
@@ -8,2 +8,5 @@ "publishConfig": { | ||
}, | ||
"dependencies": { | ||
"ora": "^3.4.0" | ||
}, | ||
"files": [ | ||
@@ -15,3 +18,3 @@ "build", | ||
"license": "MIT", | ||
"gitHead": "f76add94dcfb647dd55b59a5fad9a4d5363962fa" | ||
"gitHead": "989967184d6d16a13a17cde7d607389c7726c7fd" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13622
362
0
1
2
+ Addedora@^3.4.0
+ Addedansi-regex@4.1.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcli-cursor@2.1.0(transitive)
+ Addedcli-spinners@2.9.2(transitive)
+ Addedclone@1.0.4(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addeddefaults@1.0.4(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedlog-symbols@2.2.0(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedora@3.4.0(transitive)
+ Addedrestore-cursor@2.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstrip-ansi@5.2.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedwcwidth@1.0.1(transitive)