Skip to content

Commit

Permalink
chore(deps): update dependency typescript to v4.9.5 (#990)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Shinigami92 <[email protected]>
  • Loading branch information
renovate[bot] and Shinigami92 authored Jul 27, 2024
1 parent c39c92f commit 1f615b9
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 76 deletions.
18 changes: 4 additions & 14 deletions bin/node-pg-migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,18 +326,10 @@ function isClientConfig(val: unknown): val is ClientConfig & { name?: string } {
return (
typeof val === 'object' &&
val !== null &&
(('host' in val &&
// @ts-expect-error: this is a TS 4.8 bug
!!val.host) ||
('port' in val &&
// @ts-expect-error: this is a TS 4.8 bug
!!val.port) ||
('name' in val &&
// @ts-expect-error: this is a TS 4.8 bug
!!val.name) ||
('database' in val &&
// @ts-expect-error: this is a TS 4.8 bug
!!val.database))
(('host' in val && !!val.host) ||
('port' in val && !!val.port) ||
('name' in val && !!val.name) ||
('database' in val && !!val.database))
);
}

Expand Down Expand Up @@ -402,9 +394,7 @@ function readJson(json: unknown): void {
);
tsconfigPath = applyIf(tsconfigPath, tsconfigArg, json, isString);

// @ts-expect-error: this is a TS 4.8 bug
if ('url' in json && json.url) {
// @ts-expect-error: this is a TS 4.8 bug
DB_CONNECTION ??= json.url;
} else if (isClientConfig(json)) {
DB_CONNECTION ??= {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"rimraf": "6.0.1",
"ts-node": "10.9.2",
"tsup": "8.2.3",
"typescript": "4.8.4",
"typescript": "4.9.5",
"vitepress": "1.3.1",
"vitest": "2.0.4"
},
Expand Down
122 changes: 61 additions & 61 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f615b9

Please sign in to comment.