Skip to content

Commit 06fb615

Browse files
committed
chore: upgrade dependencies
1 parent 9bb2a22 commit 06fb615

File tree

10 files changed

+4207
-4959
lines changed

10 files changed

+4207
-4959
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
"watch": "concurrently 'yarn typescript --watch' 'lerna run --parallel prepare -- --watch'"
1919
},
2020
"devDependencies": {
21-
"@commitlint/config-conventional": "^11.0.0",
22-
"commitlint": "^11.0.0",
23-
"concurrently": "^5.3.0",
24-
"eslint": "^7.15.0",
25-
"eslint-config-satya164": "^3.1.8",
26-
"husky": "^4.3.6",
27-
"lerna": "^3.22.1",
28-
"prettier": "^2.2.1",
29-
"typescript": "^4.1.3"
21+
"@commitlint/config-conventional": "^17.0.2",
22+
"commitlint": "^17.0.2",
23+
"concurrently": "^7.2.2",
24+
"eslint": "^8.18.0",
25+
"eslint-config-satya164": "^3.1.11",
26+
"husky": "^8.0.1",
27+
"lerna": "^5.1.4",
28+
"prettier": "^2.7.1",
29+
"typescript": "^4.7.4"
3030
},
3131
"husky": {
3232
"hooks": {

packages/create-react-native-library/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,32 @@
4242
"prepare": "babel --extensions .ts,.tsx src --out-dir lib --ignore '**/__tests__/**' --source-maps --delete-dir-on-start"
4343
},
4444
"dependencies": {
45-
"chalk": "^4.1.0",
45+
"chalk": "^4.1.2",
4646
"cross-spawn": "^7.0.3",
4747
"dedent": "^0.7.0",
48-
"ejs": "^3.1.5",
49-
"fs-extra": "^9.0.1",
50-
"github-username": "^5.0.1",
51-
"prompts": "^2.4.0",
52-
"validate-npm-package-name": "^3.0.0",
53-
"yargs": "^16.2.0"
48+
"ejs": "^3.1.8",
49+
"fs-extra": "^10.1.0",
50+
"github-username": "^6.0.0",
51+
"prompts": "^2.4.2",
52+
"validate-npm-package-name": "^4.0.0",
53+
"yargs": "^17.5.1"
5454
},
5555
"optionalDependencies": {
56-
"jetifier": "^1.6.6"
56+
"jetifier": "^2.0.0"
5757
},
5858
"devDependencies": {
59-
"@babel/cli": "^7.12.10",
60-
"@babel/core": "^7.12.10",
61-
"@babel/preset-env": "^7.12.11",
62-
"@babel/preset-typescript": "^7.12.7",
63-
"@commitlint/config-conventional": "^11.0.0",
59+
"@babel/cli": "^7.17.10",
60+
"@babel/core": "^7.18.5",
61+
"@babel/preset-env": "^7.18.2",
62+
"@babel/preset-typescript": "^7.17.12",
63+
"@commitlint/config-conventional": "^17.0.2",
6464
"@types/chalk": "^2.2.0",
6565
"@types/cross-spawn": "^6.0.2",
6666
"@types/dedent": "^0.7.0",
67-
"@types/ejs": "^3.0.5",
68-
"@types/fs-extra": "^9.0.5",
69-
"@types/prompts": "^2.0.9",
70-
"@types/validate-npm-package-name": "^3.0.2",
71-
"@types/yargs": "^15.0.12"
67+
"@types/ejs": "^3.1.1",
68+
"@types/fs-extra": "^9.0.13",
69+
"@types/prompts": "^2.0.14",
70+
"@types/validate-npm-package-name": "^3.0.3",
71+
"@types/yargs": "^17.0.10"
7272
}
7373
}

packages/create-react-native-library/src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,7 @@ async function create(argv: yargs.Arguments<any>) {
328328
project: {
329329
slug,
330330
description,
331-
name: `${project
332-
.charAt(0)
333-
.toUpperCase()}${project
331+
name: `${project.charAt(0).toUpperCase()}${project
334332
.replace(/[^a-z0-9](\w)/g, (_, $1) => $1.toUpperCase())
335333
.slice(1)}`,
336334
package: slug.replace(/[^a-z0-9]/g, '').toLowerCase(),

packages/create-react-native-library/src/utils/prompts.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ export default function prompts(
1212
});
1313
}
1414

15-
export type PromptObject<
16-
T extends string = string
17-
> = promptsModule.PromptObject<T>;
15+
export type PromptObject<T extends string = string> =
16+
promptsModule.PromptObject<T>;

packages/react-native-builder-bob/package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -36,43 +36,43 @@
3636
"prepare": "babel --extensions .ts,.tsx src --out-dir lib --source-maps --delete-dir-on-start"
3737
},
3838
"dependencies": {
39-
"@babel/core": "^7.12.10",
40-
"@babel/plugin-proposal-class-properties": "^7.12.1",
41-
"@babel/preset-env": "^7.12.11",
42-
"@babel/preset-flow": "^7.12.1",
43-
"@babel/preset-react": "^7.12.10",
44-
"@babel/preset-typescript": "^7.12.7",
45-
"browserslist": "^4.16.0",
46-
"chalk": "^4.1.0",
47-
"cosmiconfig": "^7.0.0",
39+
"@babel/core": "^7.18.5",
40+
"@babel/plugin-proposal-class-properties": "^7.17.12",
41+
"@babel/preset-env": "^7.18.2",
42+
"@babel/preset-flow": "^7.17.12",
43+
"@babel/preset-react": "^7.17.12",
44+
"@babel/preset-typescript": "^7.17.12",
45+
"browserslist": "^4.20.4",
46+
"chalk": "^4.1.2",
47+
"cosmiconfig": "^7.0.1",
4848
"cross-spawn": "^7.0.3",
4949
"dedent": "^0.7.0",
50-
"del": "^6.0.0",
51-
"fs-extra": "^9.0.1",
52-
"glob": "^7.1.6",
50+
"del": "^6.1.1",
51+
"fs-extra": "^10.1.0",
52+
"glob": "^8.0.3",
5353
"is-git-dirty": "^2.0.1",
54-
"json5": "^2.1.3",
55-
"prompts": "^2.4.0",
54+
"json5": "^2.2.1",
55+
"prompts": "^2.4.2",
5656
"which": "^2.0.2",
57-
"yargs": "^16.2.0"
57+
"yargs": "^17.5.1"
5858
},
5959
"optionalDependencies": {
60-
"jetifier": "^1.6.6"
60+
"jetifier": "^2.0.0"
6161
},
6262
"devDependencies": {
63-
"@babel/cli": "^7.12.10",
64-
"@types/babel__core": "^7.1.12",
65-
"@types/browserslist": "^4.8.0",
63+
"@babel/cli": "^7.17.10",
64+
"@types/babel__core": "^7.1.19",
65+
"@types/browserslist": "^4.15.0",
6666
"@types/chalk": "^2.2.0",
6767
"@types/cross-spawn": "^6.0.2",
6868
"@types/dedent": "^0.7.0",
6969
"@types/del": "^4.0.0",
70-
"@types/fs-extra": "^9.0.5",
71-
"@types/glob": "^7.1.3",
72-
"@types/json5": "^0.0.30",
73-
"@types/prompts": "^2.0.9",
74-
"@types/which": "^1.3.2",
75-
"@types/yargs": "^15.0.12",
76-
"concurrently": "^5.3.0"
70+
"@types/fs-extra": "^9.0.13",
71+
"@types/glob": "^7.2.0",
72+
"@types/json5": "^2.2.0",
73+
"@types/prompts": "^2.0.14",
74+
"@types/which": "^2.0.1",
75+
"@types/yargs": "^17.0.10",
76+
"concurrently": "^7.2.2"
7777
}
7878
}

packages/react-native-builder-bob/src/targets/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default async function build({
150150
} else {
151151
throw new Error('Failed to build definition files.');
152152
}
153-
} catch (e) {
153+
} catch (e: any) {
154154
if (e.stdout) {
155155
report.error(
156156
`Errors found when building definition files:\n${e.stdout.toString()}`

packages/react-native-builder-bob/src/utils/logger.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import chalk from 'chalk';
22

3-
const logger = (type: string, color: Function) => (...messages: unknown[]) => {
4-
console.log(color(chalk.bold(type)), ...messages);
5-
};
3+
const logger =
4+
(type: string, color: Function) =>
5+
(...messages: unknown[]) => {
6+
console.log(color(chalk.bold(type)), ...messages);
7+
};
68

79
export const info = logger('ℹ', chalk.blue);
810
export const warn = logger('⚠', chalk.yellow);

packages/react-native-builder-bob/src/utils/prompts.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ export default function prompts(
1212
});
1313
}
1414

15-
export type PromptObject<
16-
T extends string = string
17-
> = promptsModule.PromptObject<T>;
15+
export type PromptObject<T extends string = string> =
16+
promptsModule.PromptObject<T>;

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"noImplicitReturns": true,
2323
"noImplicitUseStrict": false,
2424
"noStrictGenericChecks": false,
25+
"noUncheckedIndexedAccess": true,
2526
"noUnusedLocals": true,
2627
"noUnusedParameters": true,
2728
"resolveJsonModule": true,

0 commit comments

Comments
 (0)