Skip to content

Commit eb16d14

Browse files
committed
Upgrade packages to latest
1 parent f5341ef commit eb16d14

File tree

8 files changed

+2283
-2181
lines changed

8 files changed

+2283
-2181
lines changed

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,11 @@ module.exports = {
3535
'prettier/prettier': [2, {prettierConfig, parser: 'typescript'}],
3636
},
3737
},
38+
{
39+
files: ['*.js'],
40+
rules: {
41+
'@typescript-eslint/no-var-requires': 'off',
42+
},
43+
},
3844
],
3945
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
*/
8+
9+
declare module '@react-native-community/cli-platform-android/build/link/warnAboutManuallyLinkedLibs' {
10+
import {Config} from '@react-native-community/cli-types';
11+
export default function warnAboutManuallyLinkedLibs(
12+
config: Config,
13+
platform?: string,
14+
linkConfig?: ReturnType<Config['platforms']['android']['linkConfig']>,
15+
): void;
16+
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
*/
8+
9+
declare module '@react-native-community/cli-platform-ios/build/commands/runIOS' {
10+
import {Config} from '@react-native-community/cli-types';
11+
12+
type FlagsT = {
13+
simulator?: string;
14+
configuration: string;
15+
scheme?: string;
16+
projectPath: string;
17+
device?: string | true;
18+
udid?: string;
19+
packager: boolean;
20+
verbose: boolean;
21+
port: number;
22+
terminal: string | undefined;
23+
};
24+
25+
function runIOS(
26+
_: Array<string>,
27+
ctx: Config,
28+
args: FlagsT,
29+
): void | Promise<void>;
30+
31+
export const _default: {
32+
name: string;
33+
description: string;
34+
func: typeof runIOS;
35+
examples: {
36+
desc: string;
37+
cmd: string;
38+
}[];
39+
options: (
40+
| {
41+
name: string;
42+
description: string;
43+
default: string;
44+
parse?: undefined;
45+
}
46+
| {
47+
name: string;
48+
description: string;
49+
default?: undefined;
50+
parse?: undefined;
51+
}
52+
| {
53+
name: string;
54+
default: string | number;
55+
parse: (val: string) => number;
56+
description?: undefined;
57+
}
58+
| {
59+
name: string;
60+
description: string;
61+
default: () => string | undefined;
62+
parse?: undefined;
63+
}
64+
)[];
65+
};
66+
67+
export default _default;
68+
}
69+
70+
declare module '@react-native-community/cli-platform-ios/build/commands/runIOS/findXcodeProject' {
71+
export type ProjectInfo = {
72+
name: string;
73+
isWorkspace: boolean;
74+
};
75+
function findXcodeProject(files: Array<string>): ProjectInfo | null;
76+
export default findXcodeProject;
77+
}
78+
79+
declare module '@react-native-community/cli-platform-ios/build/link/warnAboutPodInstall' {
80+
import {Config} from '@react-native-community/cli-types';
81+
export default function warnAboutPodInstall(config: Config): void;
82+
}
83+
84+
declare module '@react-native-community/cli-platform-ios/build/link/warnAboutManuallyLinkedLibs' {
85+
import {Config} from '@react-native-community/cli-types';
86+
export default function warnAboutManuallyLinkedLibs(
87+
config: Config,
88+
platform?: string,
89+
linkConfig?: ReturnType<Config['platforms']['ios']['linkConfig']>,
90+
): void;
91+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
*/
8+
9+
declare module '@react-native-community/cli-tools' {
10+
export const logger: {
11+
success: (...messages: string[]) => void;
12+
info: (...messages: string[]) => void;
13+
warn: (...messages: string[]) => void;
14+
error: (...messages: string[]) => void;
15+
debug: (...messages: string[]) => void;
16+
log: (...messages: string[]) => void;
17+
setVerbose: (level: boolean) => void;
18+
isVerbose: () => boolean;
19+
disable: () => void;
20+
enable: () => void;
21+
};
22+
23+
export class CLIError extends Error {
24+
constructor(msg: string, originalError?: Error | string);
25+
}
26+
}

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,39 @@
2020
"testEnvironment": "node"
2121
},
2222
"devDependencies": {
23-
"@babel/core": "^7.8.6",
24-
"@babel/preset-env": "^7.8.4",
25-
"@babel/preset-typescript": "^7.8.3",
26-
"@react-native-community/cli-platform-android": "^3.1.4",
27-
"@react-native-community/cli-platform-ios": "^3.2.0",
28-
"@react-native-community/cli-tools": "^3.0.0",
29-
"@react-native-community/cli-types": "^3.0.0",
30-
"@react-native-community/eslint-config": "^0.0.7",
31-
"@types/glob": "^7.1.1",
23+
"@babel/core": "^7.10.5",
24+
"@babel/preset-env": "^7.10.4",
25+
"@babel/preset-typescript": "^7.10.4",
26+
"@react-native-community/cli-platform-android": "^4.10.1",
27+
"@react-native-community/cli-platform-ios": "^4.10.1",
28+
"@react-native-community/cli-tools": "^4.10.1",
29+
"@react-native-community/cli-types": "^4.10.1",
30+
"@react-native-community/eslint-config": "^2.0.0",
31+
"@types/glob": "^7.1.3",
3232
"@types/graceful-fs": "^4.1.3",
33-
"@types/jest": "^25.1.3",
34-
"@types/lodash": "^4.14.149",
35-
"@types/node": "^13.7.1",
36-
"@types/node-fetch": "^2.5.4",
37-
"@typescript-eslint/eslint-plugin": "^2.21.0",
38-
"@typescript-eslint/parser": "^2.21.0",
39-
"eslint": "^6.8.0",
33+
"@types/jest": "^26.0.5",
34+
"@types/lodash": "^4.14.157",
35+
"@types/node": "^14.0.23",
36+
"@types/node-fetch": "^2.5.7",
37+
"@typescript-eslint/eslint-plugin": "^3.6.1",
38+
"@typescript-eslint/parser": "^3.6.1",
39+
"eslint": "^7.5.0",
4040
"eslint-import-resolver-alias": "^1.1.2",
4141
"eslint-import-resolver-typescript": "^2.0.0",
42-
"eslint-plugin-import": "^2.20.1",
43-
"eslint-plugin-prettier": "^3.1.2",
44-
"jest": "^25.1.0",
45-
"prettier": "^1.19.1",
42+
"eslint-plugin-import": "^2.22.0",
43+
"eslint-plugin-prettier": "^3.1.4",
44+
"jest": "^26.1.0",
45+
"prettier": "^2.0.5",
4646
"rimraf": "^3.0.2",
47-
"typescript": "^3.7.5"
47+
"typescript": "^3.9.7"
4848
},
4949
"peerDependencies": {
5050
"@react-native-community/cli": ">= 3.0.0"
5151
},
5252
"dependencies": {
53-
"execa": "^4.0.0",
53+
"execa": "^4.0.3",
5454
"glob": "^7.1.6",
55-
"graceful-fs": "^4.2.3",
56-
"lodash": "^4.17.15"
55+
"graceful-fs": "^4.2.4",
56+
"lodash": "^4.17.19"
5757
}
5858
}

src/commands/common/buildIOS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function xcprettyAvailable(): boolean {
8282
return true;
8383
}
8484

85-
function getProcessOptions(): object {
85+
function getProcessOptions(): Record<string, unknown> {
8686
return {
8787
env: {
8888
...process.env,

src/commands/measureIOS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static vm_size_t RCTGetResidentMemorySize(void)
103103
async function waitSimulatorLog(
104104
patchTag: string,
105105
): Promise<{[key: string]: string}> {
106-
return new Promise(resolve => {
106+
return new Promise((resolve) => {
107107
const result: {[key: string]: string} = {};
108108
const child = spawn('xcrun', [
109109
'simctl',

0 commit comments

Comments
 (0)