diff --git a/package.json b/package.json index a104dbf10..4b7b2c11e 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,6 @@ "@primer/css": "22.3.0", "@primer/octicons-react": "19.31.0", "@primer/react": "38.34.0", - "@swc-contrib/plugin-graphql-codegen-client-preset": "0.27.0", "@tailwindcss/vite": "4.3.3", "@tanstack/react-query": "5.101.4", "@testing-library/jest-dom": "7.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9b91ae5a4..0e779adda 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -90,9 +90,6 @@ importers: '@primer/react': specifier: 38.34.0 version: 38.34.0(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react-is@19.2.8)(react@19.2.8) - '@swc-contrib/plugin-graphql-codegen-client-preset': - specifier: 0.27.0 - version: 0.27.0 '@tailwindcss/vite': specifier: 4.3.3 version: 4.3.3(vite@8.1.5(@types/node@24.13.3)(jiti@2.7.0)(yaml@2.9.0)) @@ -1397,10 +1394,6 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@swc-contrib/plugin-graphql-codegen-client-preset@0.27.0': - resolution: {integrity: sha512-6kAF8RQ35cME6Mk+Kd4rErN+gxrPcnSwhDjD1dhpAdKzn5BTEUGKxdCdvrMTIziRW364vEMlP3+0nmBP3eVd4Q==} - engines: {node: '>=16'} - '@szmarczak/http-timer@4.0.6': resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==} engines: {node: '>=10'} @@ -5838,8 +5831,6 @@ snapshots: '@standard-schema/spec@1.1.0': {} - '@swc-contrib/plugin-graphql-codegen-client-preset@0.27.0': {} - '@szmarczak/http-timer@4.0.6': dependencies: defer-to-connect: 2.0.1 diff --git a/vite.config.ts b/vite.config.ts index 95720cf31..a7854a51f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,11 +21,7 @@ const copyStaticAssetsPlugin = (): Plugin => { const flatten = (obj: object): string[] => Object.values(obj).flatMap((v) => (Array.isArray(v) ? v : flatten(v as object))); - const extractSvgFilename = (imgHtml: string) => - imgHtml - .match(/src="(.*)"/)?.[1] - .split('/') - .pop(); + const extractSvgFilename = (imgHtml: string) => /src="(.*)"/.exec(imgHtml)?.[1].split('/').pop(); let isBuild = false; @@ -102,21 +98,11 @@ export default defineConfig({ ? [] : [ checker({ - oxlint: { dev: { logLevel: ['error'] } }, + oxlint: { lintCommand: 'oxlint', dev: { logLevel: ['error'] } }, }), ]), reactDevToolsPlugin(), - react({ - plugins: [ - [ - '@swc-contrib/plugin-graphql-codegen-client-preset', - { - artifactDirectory: './src/renderer/utils/api/graphql/generated', - gqlTagName: 'graphql', - }, - ], - ], - }), + react(), tailwindcss(), electron({ main: { @@ -141,8 +127,8 @@ export default defineConfig({ 'electron', // TODO - how many of these are truly needed? 'electron-log', + 'electron-menubar', 'electron-updater', - 'menubar', ], }, },