Migrate to tsgo
This commit is contained in:
@@ -27,6 +27,8 @@
|
|||||||
"dayjs:gen-locales-import": "tsx tools/scripts/dayjs/generateDayJsLocalesImport.ts",
|
"dayjs:gen-locales-import": "tsx tools/scripts/dayjs/generateDayJsLocalesImport.ts",
|
||||||
"dayjs:gen-locales": "yarn dayjs:gen-locales-array && yarn dayjs:gen-locales-import",
|
"dayjs:gen-locales": "yarn dayjs:gen-locales-array && yarn dayjs:gen-locales-import",
|
||||||
"manga:gen-type-tags": "tsx tools/scripts/manga/generateMangaTypeTags.ts",
|
"manga:gen-type-tags": "tsx tools/scripts/manga/generateMangaTypeTags.ts",
|
||||||
|
"tsc": "tsgo",
|
||||||
|
"tsc:legacy": "tsc",
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -132,6 +134,7 @@
|
|||||||
"syncyarnlock": "1.0.19",
|
"syncyarnlock": "1.0.19",
|
||||||
"terser": "5.46.0",
|
"terser": "5.46.0",
|
||||||
"tsx": "4.21.0",
|
"tsx": "4.21.0",
|
||||||
|
"@typescript/native-preview": "7.0.0-dev.20260309.1",
|
||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"vite": "7.3.1",
|
"vite": "7.3.1",
|
||||||
"vite-plugin-node-polyfills": "0.25.0",
|
"vite-plugin-node-polyfills": "0.25.0",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { LongPressPointerHandlers, LongPressResult } from 'node_modules/use-long-press/lib/use-long-press.types';
|
import { LongPressPointerHandlers, LongPressResult } from 'use-long-press';
|
||||||
import { PopupState } from 'material-ui-popup-state/hooks';
|
import { PopupState } from 'material-ui-popup-state/hooks';
|
||||||
import type { JSX } from 'react';
|
import type { JSX } from 'react';
|
||||||
import { SelectableCollectionReturnType } from '@/base/collection/hooks/useSelectableCollection.ts';
|
import { SelectableCollectionReturnType } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
import {
|
import {
|
||||||
createTheme as createMuiTheme,
|
createTheme as createMuiTheme,
|
||||||
Direction,
|
Direction,
|
||||||
|
PaletteBackgroundChannel,
|
||||||
responsiveFontSizes,
|
responsiveFontSizes,
|
||||||
Theme,
|
Theme,
|
||||||
TypeBackground,
|
TypeBackground,
|
||||||
@@ -17,7 +18,6 @@ import {
|
|||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
// eslint-disable-next-line import/no-extraneous-dependencies,no-restricted-imports
|
// eslint-disable-next-line import/no-extraneous-dependencies,no-restricted-imports
|
||||||
import { deepmerge } from '@mui/utils';
|
import { deepmerge } from '@mui/utils';
|
||||||
import { PaletteBackgroundChannel } from 'node_modules/@mui/material/esm/styles/createThemeWithVars';
|
|
||||||
import { complement, hsl, parseToHsl } from 'polished';
|
import { complement, hsl, parseToHsl } from 'polished';
|
||||||
import { HslaColor, HslColor } from 'polished/lib/types/color';
|
import { HslaColor, HslColor } from 'polished/lib/types/color';
|
||||||
import { AppTheme } from '@/features/theme/services/AppThemes.ts';
|
import { AppTheme } from '@/features/theme/services/AppThemes.ts';
|
||||||
|
|||||||
7
src/lib/mui/MuiStyles.types.d.ts
vendored
7
src/lib/mui/MuiStyles.types.d.ts
vendored
@@ -12,4 +12,11 @@ declare module '@mui/material/styles' {
|
|||||||
interface CssThemeVariables {
|
interface CssThemeVariables {
|
||||||
enabled: true;
|
enabled: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Re-exported here because MUI doesn't include PaletteBackgroundChannel in its public API surface.
|
||||||
|
// Defined in @mui/material/esm/styles/createThemeFoundation.d.ts
|
||||||
|
export interface PaletteBackgroundChannel {
|
||||||
|
defaultChannel: string;
|
||||||
|
paperChannel: string;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": [
|
"@/*": [
|
||||||
"./src/*"
|
"./src/*"
|
||||||
|
|||||||
48
yarn.lock
48
yarn.lock
@@ -3634,6 +3634,54 @@
|
|||||||
"@typescript-eslint/types" "8.53.0"
|
"@typescript-eslint/types" "8.53.0"
|
||||||
eslint-visitor-keys "^4.2.1"
|
eslint-visitor-keys "^4.2.1"
|
||||||
|
|
||||||
|
"@typescript/native-preview-darwin-arm64@7.0.0-dev.20260309.1":
|
||||||
|
version "7.0.0-dev.20260309.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript/native-preview-darwin-arm64/-/native-preview-darwin-arm64-7.0.0-dev.20260309.1.tgz#dcdfa0cdf2cd15ff5a98626da997fe9377fff78d"
|
||||||
|
integrity sha512-Vszk6vbONyyT47mUTEFNAXk+bJisM8F0pI+MyNPM8i2oorex7Gbp7ivFUGzdZHRFPDXMrlw6AXmgx1U2tZxiHw==
|
||||||
|
|
||||||
|
"@typescript/native-preview-darwin-x64@7.0.0-dev.20260309.1":
|
||||||
|
version "7.0.0-dev.20260309.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript/native-preview-darwin-x64/-/native-preview-darwin-x64-7.0.0-dev.20260309.1.tgz#c407a2c247f6024c74858724b4bc359d976a4bd4"
|
||||||
|
integrity sha512-UmmW/L1fW6URMILx5HqxcL2kElOyTYbY6M8yRMQK7gmBzsbkGj37JYN+WZgPkz/PQCVsxwIFcot6WmKRRXeBxQ==
|
||||||
|
|
||||||
|
"@typescript/native-preview-linux-arm64@7.0.0-dev.20260309.1":
|
||||||
|
version "7.0.0-dev.20260309.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-arm64/-/native-preview-linux-arm64-7.0.0-dev.20260309.1.tgz#c731d593cf5ba77a2ba879c13c5980a7d83a8ab2"
|
||||||
|
integrity sha512-sN5rQRvqre8JHUISJhybUQ1e4a+mb/Ifa+uWHJawJ2tojTXWkU1rJTZBnAN3/XeoIJgeSdaZQAZRDlW9B7zbvw==
|
||||||
|
|
||||||
|
"@typescript/native-preview-linux-arm@7.0.0-dev.20260309.1":
|
||||||
|
version "7.0.0-dev.20260309.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-arm/-/native-preview-linux-arm-7.0.0-dev.20260309.1.tgz#790578700afc114cecc0641631eea636a540bac3"
|
||||||
|
integrity sha512-G5zgoOZP2NjZ1kga9mend2in1e3C+Mm3XufelVZ9RwWRka744s6KxAsen853LizCrxBh58foj9pPVnH6gKUJvg==
|
||||||
|
|
||||||
|
"@typescript/native-preview-linux-x64@7.0.0-dev.20260309.1":
|
||||||
|
version "7.0.0-dev.20260309.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-x64/-/native-preview-linux-x64-7.0.0-dev.20260309.1.tgz#8c76acd94af6a0576a0c95e7e6a0e163deef9cb1"
|
||||||
|
integrity sha512-ZuHu9Sg4/akGSrO49hKLNKwrFXx7AZ2CS3PcTd85cC4nKudqB1aGD9rHxZZZyClj++e0qcNQ+4eTMn1sxDA9VQ==
|
||||||
|
|
||||||
|
"@typescript/native-preview-win32-arm64@7.0.0-dev.20260309.1":
|
||||||
|
version "7.0.0-dev.20260309.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript/native-preview-win32-arm64/-/native-preview-win32-arm64-7.0.0-dev.20260309.1.tgz#98e91aba713ca1c40727141a828df9fb0942e66f"
|
||||||
|
integrity sha512-RNIidoGPsRaALc1znXiWfNARkGptm9e55qYnaz11YPvMrqbRKP9Y6Ipx4Oh/diIeF7y9UYiikeyk7EsyKe//sw==
|
||||||
|
|
||||||
|
"@typescript/native-preview-win32-x64@7.0.0-dev.20260309.1":
|
||||||
|
version "7.0.0-dev.20260309.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript/native-preview-win32-x64/-/native-preview-win32-x64-7.0.0-dev.20260309.1.tgz#ff7bc2d184aee821cabd9a92ca596a429a81e815"
|
||||||
|
integrity sha512-/rEvAKowcoEdL2VeNju8apkGHEmbat10jIn1Sncny1zIaWvaMFw6bhmny+kKwX+9deitMfo9ihLlo5GCPJuMPQ==
|
||||||
|
|
||||||
|
"@typescript/native-preview@7.0.0-dev.20260309.1":
|
||||||
|
version "7.0.0-dev.20260309.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@typescript/native-preview/-/native-preview-7.0.0-dev.20260309.1.tgz#e91728fcda4c25f8524c7e362baeb6fcd20fa26d"
|
||||||
|
integrity sha512-ZK+ExK7scBzUCAXCTtAwUm6QENJ+l3tCDQXNCly4WcGUvbIAWdaiNns4brganGN9nrxxRkC9Rx0CrxvIsn9zHA==
|
||||||
|
optionalDependencies:
|
||||||
|
"@typescript/native-preview-darwin-arm64" "7.0.0-dev.20260309.1"
|
||||||
|
"@typescript/native-preview-darwin-x64" "7.0.0-dev.20260309.1"
|
||||||
|
"@typescript/native-preview-linux-arm" "7.0.0-dev.20260309.1"
|
||||||
|
"@typescript/native-preview-linux-arm64" "7.0.0-dev.20260309.1"
|
||||||
|
"@typescript/native-preview-linux-x64" "7.0.0-dev.20260309.1"
|
||||||
|
"@typescript/native-preview-win32-arm64" "7.0.0-dev.20260309.1"
|
||||||
|
"@typescript/native-preview-win32-x64" "7.0.0-dev.20260309.1"
|
||||||
|
|
||||||
"@ungap/structured-clone@^1.2.0":
|
"@ungap/structured-clone@^1.2.0":
|
||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
|
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
|
||||||
|
|||||||
Reference in New Issue
Block a user