forked from Heroic-Games-Launcher/HeroicGamesLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tech] Update just about all of our dependencies (Heroic-Games-Launch…
…er#2525) * Update just about all of our dependencies Notable changes: - `filesize`'s type definitions don't seem right to me. I've overwritten those with something that *works* - `react-i18next` does not export `TFunction` anymore, but `i18next` (now?) does - `typescript-eslint` got smarter, which meant having to add `async` to some functions that only returned Promises sometimes - `i18next`'s `t` function can return null by default. We've already disabled this in it our initialization functions, but our types didn't know about this yet - Jest seems to no longer specify the type of a thing in a snapshot (`Array []` -> `[]`) * Filter out `satisfies`-related errors in `find-deadcode` To be clear, this is absolutely meant as a temporary solution until *someone* picks up ts-prune and updates it to support this by itself How this works: - The `find-deadcode` script filters out lines containing `satisfies` along with the line directly after (which contains the token directly after `satisfies` - By piping the output into `sed`, the original return value of `ts-prune` is lost (so it'll no longer fail the workflow if issues are found). To fix this, in the workflow, we pipe *that* output to `wc -l` (counting output lines) and make sure that's less than 4 (the 3 allowed lines are produced by Yarn, so they'll always be there) * Replace ts-prune with unimported * Review fixes * Revert "Filter out `satisfies`-related errors in `find-deadcode`" This reverts commit 28b5191. * Install a specific version of ts-morph to resolve ts-prune issues * Re-introduce ts-prune * Some more updates --------- Co-authored-by: Nocccer <[email protected]>
- Loading branch information
Showing
13 changed files
with
2,212 additions
and
1,417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"rootDir": "./src", | ||
"preset": "node", | ||
"entry": [ | ||
"src/frontend/index.tsx", | ||
"src/backend/main.ts", | ||
"src/backend/preload.ts" | ||
], | ||
"aliases": { | ||
"backend/*": ["./backend", "./backend/*"], | ||
"common/*": ["./common", "./common/*"], | ||
"frontend/*": ["./frontend", "./frontend/*"] | ||
}, | ||
"extensions": [".js", ".jsx", ".ts", ".tsx"], | ||
"ignorePatterns": [ | ||
"**/node_modules/**", | ||
"**/__tests__/**", | ||
"**/__mocks__/**", | ||
"common/typedefs/*.d.ts" | ||
], | ||
"ignoreUnimported": [ | ||
"src/backend/jest.config.js", | ||
"src/common/types/proxy-types.ts" | ||
], | ||
"ignoreUnused": ["@fontsource/cabin", "@fontsource/rubik", "tslib"], | ||
"ignoreUnresolved": ["../../tsconfig", "./writable.js", "type-fest"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// i18next.d.ts | ||
import 'i18next' | ||
|
||
declare module 'i18next' { | ||
interface CustomTypeOptions { | ||
returnNull: false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.