Skip to content

Commit f2e82bd

Browse files
authored
chore(deps): update typescript to 4.8 (ionic-team#4974)
1 parent 607237d commit f2e82bd

84 files changed

Lines changed: 164 additions & 164 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"chokidar-cli": "^2.0.0",
2121
"husky": "^4.2.0",
2222
"lerna": "^3.13.3",
23-
"typescript": "~4.0.2"
23+
"typescript": "~4.8.0"
2424
},
2525
"husky": {
2626
"hooks": {

packages/@ionic/cli-framework-output/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"jest-cli": "^26.0.1",
3939
"lint-staged": "^10.0.2",
4040
"ts-jest": "~26.3.0",
41-
"typescript": "~4.0.2"
41+
"typescript": "~4.8.0"
4242
}
4343
}

packages/@ionic/cli-framework-prompts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"jest-cli": "^26.0.1",
3939
"lint-staged": "^10.0.2",
4040
"ts-jest": "~26.3.0",
41-
"typescript": "~4.0.2"
41+
"typescript": "~4.8.0"
4242
}
4343
}

packages/@ionic/cli-framework/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
"jest-cli": "^26.0.1",
4747
"lint-staged": "^10.0.2",
4848
"ts-jest": "~26.3.0",
49-
"typescript": "~4.0.2"
49+
"typescript": "~4.8.0"
5050
}
5151
}

packages/@ionic/cli-framework/src/lib/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export abstract class BaseCommand<C extends ICommand<C, N, M, I, O>, N extends I
2929
if (input.validators && input.validators.length > 0) {
3030
try {
3131
validate(argv[i], input.name, [...input.validators]);
32-
} catch (e) {
32+
} catch (e: any) {
3333
if (!(e instanceof InputValidationError)) {
3434
throw e;
3535
}

packages/@ionic/cli-framework/src/lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export abstract class BaseConfig<T extends object> {
3232
get file() {
3333
try {
3434
return this._getFile();
35-
} catch (e) {
35+
} catch (e: any) {
3636
return {};
3737
}
3838
}
@@ -44,7 +44,7 @@ export abstract class BaseConfig<T extends object> {
4444
const config = typeof navigated === 'object' ? navigated : {};
4545

4646
return lodash.assign({}, this.provideDefaults(config), config);
47-
} catch (e) {
47+
} catch (e: any) {
4848
if (e.code === 'ENOENT' || e.name === 'SyntaxError') {
4949
const value = this.provideDefaults({});
5050
const v = this.pathPrefix.length === 0 ? value : lodash.set({}, [...this.pathPrefix], value);

packages/@ionic/cli-framework/src/lib/executor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class BaseExecutor<C extends ICommand<C, N, M, I, O>, N extends INamespac
121121

122122
try {
123123
await command.validate(cmdinputs);
124-
} catch (e) {
124+
} catch (e: any) {
125125
if (e instanceof InputValidationError) {
126126
for (const err of e.errors) {
127127
this.stderr.write(`${err.message}\n`);
@@ -185,7 +185,7 @@ export async function execute<C extends ICommand<C, N, M, I, O>, N extends IName
185185

186186
try {
187187
await executor.execute(argv, env);
188-
} catch (e) {
188+
} catch (e: any) {
189189
if (e instanceof BaseError) {
190190
executor.stderr.write(`Error: ${e.message}`);
191191
process.exitCode = typeof e.exitCode === 'undefined' ? 1 : e.exitCode;

packages/@ionic/cli-framework/src/utils/ipc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class RPCProcess {
6464
if (fn) {
6565
try {
6666
data = await fn(msg.args);
67-
} catch (e) {
67+
} catch (e: any) {
6868
err = e;
6969
}
7070
} else {
@@ -162,7 +162,7 @@ export class RPCHost {
162162
start(): void {
163163
try {
164164
fs.accessSync(this.modulePath, fs.constants.R_OK);
165-
} catch (e) {
165+
} catch (e: any) {
166166
debug('Error during access check: %O', e);
167167
throw new IPCError(`Module not accessible: ${this.modulePath}`);
168168
}

packages/@ionic/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@
8585
"rimraf": "^3.0.0",
8686
"source-map": "^0.7.0",
8787
"ts-jest": "~26.3.0",
88-
"typescript": "~4.0.2"
88+
"typescript": "~4.8.0"
8989
}
9090
}

packages/@ionic/cli/src/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function detectLocalCLI(): Promise<string> {
1616

1717
try {
1818
pkgPath = require.resolve('ionic/package', { paths: compileNodeModulesPaths(process.cwd()) });
19-
} catch (e) {
19+
} catch (e: any) {
2020
// ignore
2121
}
2222

0 commit comments

Comments
 (0)