@react-native-community/cli-types 7.0.1 → 8.0.0

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/src/ios.ts DELETED
@@ -1,97 +0,0 @@
1
- /**
2
- * Settings that user can define in the project configuration for iOS.
3
- * Same for dependency - we share the type.
4
- *
5
- * See UserDependencyConfigT and UserConfigT for details
6
- */
7
- export interface IOSProjectParams {
8
- project?: string;
9
- /**
10
- * @deprecated A podspec should always be at the root of a package and
11
- * have the name of the package. This property will be
12
- * removed in a future major version.
13
- *
14
- * @todo Log a warning when this is used.
15
- */
16
- podspecPath?: string;
17
- sharedLibraries?: string[];
18
- libraryFolder?: string;
19
- plist: Array<any>;
20
- scriptPhases?: Array<any>;
21
- }
22
-
23
- export interface IOSDependencyParams extends IOSProjectParams {
24
- configurations?: string[];
25
- }
26
-
27
- // The following types are used in untyped-parts of the codebase, so I am leaving them
28
- // until we actually need them.
29
- export interface IOSProjectConfig {
30
- sourceDir: string;
31
- folder: string;
32
- pbxprojPath: string;
33
- podfile: string;
34
- podspecPath: string;
35
- projectPath: string;
36
- projectName: string;
37
- libraryFolder: string;
38
- sharedLibraries: Array<any>;
39
- plist: Array<any>;
40
- }
41
-
42
- export interface IOSDependencyConfig extends IOSProjectConfig {
43
- configurations: string[];
44
- }
45
-
46
- /**
47
- * @see https://www.rubydoc.info/gems/cocoapods-core/Pod/Podfile/DSL#script_phase-instance_method
48
- *
49
- * The only difference is that `script` may be omitted in favour of a
50
- * `path`, relative to the root of the package, whose content will be
51
- * used.
52
- */
53
- export type IOSScriptPhase = ({script: string} | {path: string}) & {
54
- name: string;
55
- shell_path?: string;
56
- input_files?: string[];
57
- output_files?: string[];
58
- input_file_lists?: string[];
59
- output_file_lists?: string[];
60
- show_env_vars_in_log?: boolean;
61
- dependency_file?: string;
62
- execution_position?: 'before_compile' | 'after_compile' | 'any';
63
- };
64
-
65
- /**
66
- * This describes the data that is expected by `native_modules.rb`. It is only
67
- * meant to ensure the `Config` interface follows exactly what is needed, so
68
- * only make changes to this interface (or `IOSScriptPhase`) if the data
69
- * requirements of `native_modules.rb` change.
70
- */
71
- export interface IOSNativeModulesConfig {
72
- reactNativePath: string;
73
- project: {
74
- ios?: {
75
- sourceDir: string;
76
- };
77
- };
78
- dependencies: {
79
- [name: string]: {
80
- root: string;
81
- platforms: {
82
- ios?: null | {
83
- /**
84
- * @deprecated A podspec should always be at the root of a package and
85
- * have the name of the package. This property will be
86
- * removed in a future major version.
87
- *
88
- * @todo Log a warning when this is used.
89
- */
90
- podspecPath: string;
91
- scriptPhases?: Array<IOSScriptPhase>;
92
- };
93
- android?: null | {};
94
- };
95
- };
96
- };
97
- }
@@ -1,66 +0,0 @@
1
- // https://github.com/antelle/node-stream-zip/issues/36#issuecomment-596249657
2
- declare module 'node-stream-zip' {
3
- import {Stream} from 'stream';
4
-
5
- interface StreamZipOptions {
6
- /**
7
- * File to read
8
- */
9
- file: string;
10
- /**
11
- * You will be able to work with entries inside zip archive, otherwise the only way to access them is entry event
12
- *
13
- * default: true
14
- */
15
- storeEntries?: boolean;
16
- /**
17
- * By default, entry name is checked for malicious characters, like ../ or c:\123, pass this flag to disable validation errors
18
- *
19
- * default: false
20
- */
21
- skipEntryNameValidation?: boolean;
22
- /**
23
- * Undocumented adjustment of chunk size
24
- *
25
- * default: automatic
26
- */
27
- chunkSize?: number;
28
- }
29
-
30
- class ZipEntry {
31
- name: string;
32
- isDirectory: boolean;
33
- isFile: boolean;
34
- comment: string;
35
- size: number;
36
- }
37
-
38
- class StreamZip {
39
- constructor(config: StreamZipOptions);
40
-
41
- on(event: 'ready', handler: () => void): void;
42
-
43
- entry(entry: string): ZipEntry;
44
- entries(): ZipEntry[];
45
-
46
- entriesCount: number;
47
-
48
- stream(
49
- entry: string,
50
- callback: (err: any | null, stream?: Stream) => void,
51
- ): void;
52
- entryDataSync(entry: string): Buffer;
53
- openEntry(
54
- entry: string,
55
- callback: (err: any | null, entry?: ZipEntry) => void,
56
- sync: boolean,
57
- ): void;
58
- extract(
59
- entry: string | null,
60
- outPath: string,
61
- callback: (err?: any) => void,
62
- ): void;
63
- close(callback?: (err?: any) => void): void;
64
- }
65
- export = StreamZip;
66
- }
package/tsconfig.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "rootDir": "src",
5
- "outDir": "build"
6
- }
7
- }