From 3cddb952b8194f37adfadfd265ef3efd944a1adf Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Tue, 19 Aug 2025 08:03:29 +0200 Subject: [PATCH 1/4] feat: exclude devtools from production by default --- .changeset/cuddly-mammals-cough.md | 7 ++++++ examples/react/start/package.json | 4 ++-- package.json | 6 +++++- packages/event-bus-client/package.json | 12 ++++++++++- packages/event-bus-client/src/index.ts | 4 +++- packages/event-bus-client/src/production.ts | 1 + packages/event-bus-client/vite.config.ts | 2 +- packages/react-devtools/package.json | 12 ++++++++++- packages/react-devtools/src/devtools.tsx | 24 ++++++++++----------- packages/react-devtools/src/index.ts | 15 +++++++------ packages/react-devtools/src/production.ts | 7 ++++++ packages/react-devtools/vite.config.ts | 5 +++-- packages/solid-devtools/package.json | 12 ++++++++++- packages/solid-devtools/src/index.ts | 14 ++++++------ packages/solid-devtools/src/production.ts | 5 +++++ packages/solid-devtools/vite.config.ts | 4 ++-- pnpm-lock.yaml | 5 ++--- 17 files changed, 99 insertions(+), 40 deletions(-) create mode 100644 .changeset/cuddly-mammals-cough.md create mode 100644 packages/event-bus-client/src/production.ts create mode 100644 packages/react-devtools/src/production.ts create mode 100644 packages/solid-devtools/src/production.ts diff --git a/.changeset/cuddly-mammals-cough.md b/.changeset/cuddly-mammals-cough.md new file mode 100644 index 00000000..edbebfe1 --- /dev/null +++ b/.changeset/cuddly-mammals-cough.md @@ -0,0 +1,7 @@ +--- +'@tanstack/devtools-event-client': patch +'@tanstack/react-devtools': patch +'@tanstack/solid-devtools': patch +--- + +exclude from production by default diff --git a/examples/react/start/package.json b/examples/react/start/package.json index 2de1031f..1a6b09c4 100644 --- a/examples/react/start/package.json +++ b/examples/react/start/package.json @@ -7,6 +7,7 @@ "start": "node .output/server/index.mjs", "serve": "vite preview", "test": "vitest run", + "build": "vite build", "db:migrate": "prisma migrate dev --name init", "db:reset": " prisma migrate reset", "db:gen": "prisma generate", @@ -35,7 +36,6 @@ "zod": "^4.0.14" }, "devDependencies": { - "@tanstack/devtools": "^0.4.0", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.2.0", "@types/react": "^19.1.2", @@ -47,4 +47,4 @@ "vitest": "^3.1.2", "web-vitals": "^4.2.4" } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 77bd0de2..2995bb30 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,10 @@ { "path": "packages/devtools/dist/esm/index.js", "limit": "30 KB" + }, + { + "path": "packages/event-bus-client/dist/esm/plugin.js", + "limit": "1 KB" } ], "devDependencies": { @@ -79,4 +83,4 @@ "@tanstack/react-devtools": "workspace:*", "@tanstack/solid-devtools": "workspace:*" } -} +} \ No newline at end of file diff --git a/packages/event-bus-client/package.json b/packages/event-bus-client/package.json index 955ea074..16dc85e5 100644 --- a/packages/event-bus-client/package.json +++ b/packages/event-bus-client/package.json @@ -32,6 +32,16 @@ "default": "./dist/cjs/index.cjs" } }, + "./production": { + "import": { + "types": "./dist/esm/production.d.ts", + "default": "./dist/esm/production.js" + }, + "require": { + "types": "./dist/cjs/production.d.cts", + "default": "./dist/cjs/production.cjs" + } + }, "./package.json": "./package.json" }, "sideEffects": false, @@ -55,4 +65,4 @@ "devDependencies": { "@tanstack/devtools-event-bus": "workspace:*" } -} +} \ No newline at end of file diff --git a/packages/event-bus-client/src/index.ts b/packages/event-bus-client/src/index.ts index 6b3402a0..42154b18 100644 --- a/packages/event-bus-client/src/index.ts +++ b/packages/event-bus-client/src/index.ts @@ -1 +1,3 @@ -export { EventClient } from './plugin' +import * as Client from './plugin' + +export const EventClient = process.env.NODE_ENV !== "development" ? class { } : Client.EventClient \ No newline at end of file diff --git a/packages/event-bus-client/src/production.ts b/packages/event-bus-client/src/production.ts new file mode 100644 index 00000000..6b3402a0 --- /dev/null +++ b/packages/event-bus-client/src/production.ts @@ -0,0 +1 @@ +export { EventClient } from './plugin' diff --git a/packages/event-bus-client/vite.config.ts b/packages/event-bus-client/vite.config.ts index 79dae7cd..ff1838b2 100644 --- a/packages/event-bus-client/vite.config.ts +++ b/packages/event-bus-client/vite.config.ts @@ -17,7 +17,7 @@ const config = defineConfig({ export default mergeConfig( config, tanstackViteConfig({ - entry: ['./src/index.ts'], + entry: ['./src/index.ts', "./src/production.ts"], srcDir: './src', }), ) diff --git a/packages/react-devtools/package.json b/packages/react-devtools/package.json index d9f3a2ff..829d36a3 100644 --- a/packages/react-devtools/package.json +++ b/packages/react-devtools/package.json @@ -33,6 +33,16 @@ "default": "./dist/cjs/index.cjs" } }, + "./production": { + "import": { + "types": "./dist/esm/production.d.ts", + "default": "./dist/esm/production.js" + }, + "require": { + "types": "./dist/cjs/production.d.cts", + "default": "./dist/cjs/production.cjs" + } + }, "./package.json": "./package.json" }, "sideEffects": false, @@ -69,4 +79,4 @@ "react": ">=16.8", "react-dom": ">=16.8" } -} +} \ No newline at end of file diff --git a/packages/react-devtools/src/devtools.tsx b/packages/react-devtools/src/devtools.tsx index 9218e35f..f0efec8f 100644 --- a/packages/react-devtools/src/devtools.tsx +++ b/packages/react-devtools/src/devtools.tsx @@ -5,7 +5,7 @@ import { TanStackDevtoolsCore, } from '@tanstack/devtools' import { createPortal } from 'react-dom' -import type { JSX } from 'react' +import type { JSX, ReactElement } from 'react' import type { ClientEventBusConfig, TanStackDevtoolsConfig, @@ -101,7 +101,7 @@ export const TanStackDevtools = ({ plugins, config, eventBusConfig, -}: TanStackDevtoolsReactInit) => { +}: TanStackDevtoolsReactInit): ReactElement | null => { const devToolRef = useRef(null) const [pluginContainer, setPluginContainer] = useState( null, @@ -123,16 +123,16 @@ export const TanStackDevtools = ({ typeof plugin.name === 'string' ? plugin.name : // The check above confirms that `plugin.name` is of Render type - () => { - setTitleContainer( - document.getElementById(PLUGIN_TITLE_CONTAINER_ID) || - null, - ) - convertRender( - plugin.name as PluginRender, - setTitleComponent, - ) - }, + () => { + setTitleContainer( + document.getElementById(PLUGIN_TITLE_CONTAINER_ID) || + null, + ) + convertRender( + plugin.name as PluginRender, + setTitleComponent, + ) + }, render: () => { setPluginContainer( document.getElementById(PLUGIN_CONTAINER_ID) || null, diff --git a/packages/react-devtools/src/index.ts b/packages/react-devtools/src/index.ts index e23e97f8..73e6f45c 100644 --- a/packages/react-devtools/src/index.ts +++ b/packages/react-devtools/src/index.ts @@ -1,8 +1,9 @@ -// re-export everything from the core devtools package -export * from '@tanstack/devtools' -/** - * Export every hook individually - DON'T export from barrel files - */ +'use client' -export * from './devtools' -export type { TanStackDevtoolsReactPlugin } from './devtools' +import * as Devtools from "./devtools"; + +export const TanStackDevtools: (typeof Devtools)["TanStackDevtools"] = + process.env.NODE_ENV !== "development" ? + function () { return null; } : Devtools.TanStackDevtools; + +export type { TanStackDevtoolsReactPlugin, TanStackDevtoolsReactInit } from './devtools' diff --git a/packages/react-devtools/src/production.ts b/packages/react-devtools/src/production.ts new file mode 100644 index 00000000..d6365bc1 --- /dev/null +++ b/packages/react-devtools/src/production.ts @@ -0,0 +1,7 @@ +'use client' + +import * as Devtools from './devtools' + +export const TanStackDevtools = Devtools.TanStackDevtools + +export type { TanStackDevtoolsReactPlugin, TanStackDevtoolsReactInit } from './devtools' diff --git a/packages/react-devtools/vite.config.ts b/packages/react-devtools/vite.config.ts index 391ebb38..e8446c95 100644 --- a/packages/react-devtools/vite.config.ts +++ b/packages/react-devtools/vite.config.ts @@ -1,7 +1,8 @@ -import { defineConfig, mergeConfig, Plugin } from 'vitest/config' +import { defineConfig, mergeConfig } from 'vitest/config' import { tanstackViteConfig } from '@tanstack/config/vite' import react from '@vitejs/plugin-react' import packageJson from './package.json' +import type { Plugin } from 'vitest/config'; const config = defineConfig({ plugins: [react() as any satisfies Plugin], @@ -18,7 +19,7 @@ const config = defineConfig({ export default mergeConfig( config, tanstackViteConfig({ - entry: ['./src/index.ts'], + entry: ['./src/index.ts', './src/production.ts'], srcDir: './src', }), ) diff --git a/packages/solid-devtools/package.json b/packages/solid-devtools/package.json index e3014c14..dbfec367 100644 --- a/packages/solid-devtools/package.json +++ b/packages/solid-devtools/package.json @@ -33,6 +33,16 @@ "default": "./dist/cjs/index.cjs" } }, + "./production": { + "import": { + "types": "./dist/esm/production.d.ts", + "default": "./dist/esm/production.js" + }, + "require": { + "types": "./dist/cjs/production.d.ts", + "default": "./dist/cjs/production.js" + } + }, "./package.json": "./package.json" }, "sideEffects": false, @@ -62,4 +72,4 @@ "peerDependencies": { "solid-js": ">=1.9.7" } -} +} \ No newline at end of file diff --git a/packages/solid-devtools/src/index.ts b/packages/solid-devtools/src/index.ts index 1f595f69..aa091ee3 100644 --- a/packages/solid-devtools/src/index.ts +++ b/packages/solid-devtools/src/index.ts @@ -1,8 +1,10 @@ -// re-export everything from the core devtools package -export * from '@tanstack/devtools' -/** - * Export every hook individually - DON'T export from barrel files - */ +import { isDev } from 'solid-js/web' +import * as Devtools from "./devtools"; + +export const TanStackDevtools: typeof Devtools["TanStackDevtools"] = isDev ? + Devtools.TanStackDevtools : + function () { + return null; + } -export { TanStackDevtools } from './devtools' export type { TanStackDevtoolsSolidPlugin } from './core' diff --git a/packages/solid-devtools/src/production.ts b/packages/solid-devtools/src/production.ts new file mode 100644 index 00000000..3bc53107 --- /dev/null +++ b/packages/solid-devtools/src/production.ts @@ -0,0 +1,5 @@ +import * as Devtools from "./devtools"; + +export const TanStackDevtools: typeof Devtools["TanStackDevtools"] = Devtools.TanStackDevtools; + +export type { TanStackDevtoolsSolidPlugin } from './core' diff --git a/packages/solid-devtools/vite.config.ts b/packages/solid-devtools/vite.config.ts index 49a9edb7..ecfb93b5 100644 --- a/packages/solid-devtools/vite.config.ts +++ b/packages/solid-devtools/vite.config.ts @@ -2,7 +2,7 @@ import { defineConfig, mergeConfig } from 'vitest/config' import { tanstackViteConfig } from '@tanstack/config/vite' import solid from 'vite-plugin-solid' import packageJson from './package.json' -import { Plugin } from 'vite' +import type { Plugin } from 'vite' const config = defineConfig({ plugins: [solid() as any satisfies Plugin], @@ -19,7 +19,7 @@ const config = defineConfig({ export default mergeConfig( config, tanstackViteConfig({ - entry: ['./src/index.ts'], + entry: ['./src/index.ts', "./src/production.ts"], srcDir: './src', }), ) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6899b8e4..6d39a140 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -206,9 +206,6 @@ importers: specifier: ^4.0.14 version: 4.0.14 devDependencies: - '@tanstack/devtools': - specifier: ^0.4.0 - version: link:../../../packages/devtools '@testing-library/dom': specifier: ^10.4.0 version: 10.4.1 @@ -240,6 +237,8 @@ importers: specifier: ^4.2.4 version: 4.2.4 + examples/react/start/generated/prisma: {} + examples/react/time-travel: dependencies: '@tanstack/devtools-event-client': From 4b0ab835a47da81b87bbaacf86d21d73574c4e50 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 06:06:06 +0000 Subject: [PATCH 2/4] ci: apply automated fixes --- examples/react/start/package.json | 2 +- package.json | 2 +- packages/event-bus-client/package.json | 2 +- packages/event-bus-client/src/index.ts | 3 ++- packages/event-bus-client/vite.config.ts | 2 +- packages/react-devtools/package.json | 2 +- packages/react-devtools/src/devtools.tsx | 20 ++++++++++---------- packages/react-devtools/src/index.ts | 16 +++++++++++----- packages/react-devtools/src/production.ts | 5 ++++- packages/react-devtools/vite.config.ts | 2 +- packages/solid-devtools/package.json | 2 +- packages/solid-devtools/src/index.ts | 12 ++++++------ packages/solid-devtools/src/production.ts | 5 +++-- packages/solid-devtools/vite.config.ts | 2 +- 14 files changed, 44 insertions(+), 33 deletions(-) diff --git a/examples/react/start/package.json b/examples/react/start/package.json index 1a6b09c4..cf4d53e6 100644 --- a/examples/react/start/package.json +++ b/examples/react/start/package.json @@ -47,4 +47,4 @@ "vitest": "^3.1.2", "web-vitals": "^4.2.4" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 2995bb30..874fa56b 100644 --- a/package.json +++ b/package.json @@ -83,4 +83,4 @@ "@tanstack/react-devtools": "workspace:*", "@tanstack/solid-devtools": "workspace:*" } -} \ No newline at end of file +} diff --git a/packages/event-bus-client/package.json b/packages/event-bus-client/package.json index 16dc85e5..c2447a59 100644 --- a/packages/event-bus-client/package.json +++ b/packages/event-bus-client/package.json @@ -65,4 +65,4 @@ "devDependencies": { "@tanstack/devtools-event-bus": "workspace:*" } -} \ No newline at end of file +} diff --git a/packages/event-bus-client/src/index.ts b/packages/event-bus-client/src/index.ts index 42154b18..1da24822 100644 --- a/packages/event-bus-client/src/index.ts +++ b/packages/event-bus-client/src/index.ts @@ -1,3 +1,4 @@ import * as Client from './plugin' -export const EventClient = process.env.NODE_ENV !== "development" ? class { } : Client.EventClient \ No newline at end of file +export const EventClient = + process.env.NODE_ENV !== 'development' ? class {} : Client.EventClient diff --git a/packages/event-bus-client/vite.config.ts b/packages/event-bus-client/vite.config.ts index ff1838b2..60d2a34a 100644 --- a/packages/event-bus-client/vite.config.ts +++ b/packages/event-bus-client/vite.config.ts @@ -17,7 +17,7 @@ const config = defineConfig({ export default mergeConfig( config, tanstackViteConfig({ - entry: ['./src/index.ts', "./src/production.ts"], + entry: ['./src/index.ts', './src/production.ts'], srcDir: './src', }), ) diff --git a/packages/react-devtools/package.json b/packages/react-devtools/package.json index 829d36a3..3118cccd 100644 --- a/packages/react-devtools/package.json +++ b/packages/react-devtools/package.json @@ -79,4 +79,4 @@ "react": ">=16.8", "react-dom": ">=16.8" } -} \ No newline at end of file +} diff --git a/packages/react-devtools/src/devtools.tsx b/packages/react-devtools/src/devtools.tsx index f0efec8f..b60dff4a 100644 --- a/packages/react-devtools/src/devtools.tsx +++ b/packages/react-devtools/src/devtools.tsx @@ -123,16 +123,16 @@ export const TanStackDevtools = ({ typeof plugin.name === 'string' ? plugin.name : // The check above confirms that `plugin.name` is of Render type - () => { - setTitleContainer( - document.getElementById(PLUGIN_TITLE_CONTAINER_ID) || - null, - ) - convertRender( - plugin.name as PluginRender, - setTitleComponent, - ) - }, + () => { + setTitleContainer( + document.getElementById(PLUGIN_TITLE_CONTAINER_ID) || + null, + ) + convertRender( + plugin.name as PluginRender, + setTitleComponent, + ) + }, render: () => { setPluginContainer( document.getElementById(PLUGIN_CONTAINER_ID) || null, diff --git a/packages/react-devtools/src/index.ts b/packages/react-devtools/src/index.ts index 73e6f45c..3f95d65e 100644 --- a/packages/react-devtools/src/index.ts +++ b/packages/react-devtools/src/index.ts @@ -1,9 +1,15 @@ 'use client' -import * as Devtools from "./devtools"; +import * as Devtools from './devtools' -export const TanStackDevtools: (typeof Devtools)["TanStackDevtools"] = - process.env.NODE_ENV !== "development" ? - function () { return null; } : Devtools.TanStackDevtools; +export const TanStackDevtools: (typeof Devtools)['TanStackDevtools'] = + process.env.NODE_ENV !== 'development' + ? function () { + return null + } + : Devtools.TanStackDevtools -export type { TanStackDevtoolsReactPlugin, TanStackDevtoolsReactInit } from './devtools' +export type { + TanStackDevtoolsReactPlugin, + TanStackDevtoolsReactInit, +} from './devtools' diff --git a/packages/react-devtools/src/production.ts b/packages/react-devtools/src/production.ts index d6365bc1..ca1f4fb5 100644 --- a/packages/react-devtools/src/production.ts +++ b/packages/react-devtools/src/production.ts @@ -4,4 +4,7 @@ import * as Devtools from './devtools' export const TanStackDevtools = Devtools.TanStackDevtools -export type { TanStackDevtoolsReactPlugin, TanStackDevtoolsReactInit } from './devtools' +export type { + TanStackDevtoolsReactPlugin, + TanStackDevtoolsReactInit, +} from './devtools' diff --git a/packages/react-devtools/vite.config.ts b/packages/react-devtools/vite.config.ts index e8446c95..8da83633 100644 --- a/packages/react-devtools/vite.config.ts +++ b/packages/react-devtools/vite.config.ts @@ -2,7 +2,7 @@ import { defineConfig, mergeConfig } from 'vitest/config' import { tanstackViteConfig } from '@tanstack/config/vite' import react from '@vitejs/plugin-react' import packageJson from './package.json' -import type { Plugin } from 'vitest/config'; +import type { Plugin } from 'vitest/config' const config = defineConfig({ plugins: [react() as any satisfies Plugin], diff --git a/packages/solid-devtools/package.json b/packages/solid-devtools/package.json index dbfec367..b9b384e1 100644 --- a/packages/solid-devtools/package.json +++ b/packages/solid-devtools/package.json @@ -72,4 +72,4 @@ "peerDependencies": { "solid-js": ">=1.9.7" } -} \ No newline at end of file +} diff --git a/packages/solid-devtools/src/index.ts b/packages/solid-devtools/src/index.ts index aa091ee3..c6c88474 100644 --- a/packages/solid-devtools/src/index.ts +++ b/packages/solid-devtools/src/index.ts @@ -1,10 +1,10 @@ import { isDev } from 'solid-js/web' -import * as Devtools from "./devtools"; +import * as Devtools from './devtools' -export const TanStackDevtools: typeof Devtools["TanStackDevtools"] = isDev ? - Devtools.TanStackDevtools : - function () { - return null; - } +export const TanStackDevtools: (typeof Devtools)['TanStackDevtools'] = isDev + ? Devtools.TanStackDevtools + : function () { + return null + } export type { TanStackDevtoolsSolidPlugin } from './core' diff --git a/packages/solid-devtools/src/production.ts b/packages/solid-devtools/src/production.ts index 3bc53107..0d4d4c06 100644 --- a/packages/solid-devtools/src/production.ts +++ b/packages/solid-devtools/src/production.ts @@ -1,5 +1,6 @@ -import * as Devtools from "./devtools"; +import * as Devtools from './devtools' -export const TanStackDevtools: typeof Devtools["TanStackDevtools"] = Devtools.TanStackDevtools; +export const TanStackDevtools: (typeof Devtools)['TanStackDevtools'] = + Devtools.TanStackDevtools export type { TanStackDevtoolsSolidPlugin } from './core' diff --git a/packages/solid-devtools/vite.config.ts b/packages/solid-devtools/vite.config.ts index ecfb93b5..f6a7cb3c 100644 --- a/packages/solid-devtools/vite.config.ts +++ b/packages/solid-devtools/vite.config.ts @@ -19,7 +19,7 @@ const config = defineConfig({ export default mergeConfig( config, tanstackViteConfig({ - entry: ['./src/index.ts', "./src/production.ts"], + entry: ['./src/index.ts', './src/production.ts'], srcDir: './src', }), ) From 07478df8a4415e0abcf0d08f42e6deaf546663bc Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Tue, 19 Aug 2025 08:19:37 +0200 Subject: [PATCH 3/4] chore: fix tests --- examples/react/start/package.json | 4 ++-- packages/event-bus-client/src/index.ts | 22 ++++++++++++++++++++-- packages/solid-devtools/package.json | 6 +++--- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/examples/react/start/package.json b/examples/react/start/package.json index cf4d53e6..967dc73f 100644 --- a/examples/react/start/package.json +++ b/examples/react/start/package.json @@ -7,7 +7,7 @@ "start": "node .output/server/index.mjs", "serve": "vite preview", "test": "vitest run", - "build": "vite build", + "preview": "vite preview", "db:migrate": "prisma migrate dev --name init", "db:reset": " prisma migrate reset", "db:gen": "prisma generate", @@ -47,4 +47,4 @@ "vitest": "^3.1.2", "web-vitals": "^4.2.4" } -} +} \ No newline at end of file diff --git a/packages/event-bus-client/src/index.ts b/packages/event-bus-client/src/index.ts index 1da24822..492c3965 100644 --- a/packages/event-bus-client/src/index.ts +++ b/packages/event-bus-client/src/index.ts @@ -1,4 +1,22 @@ import * as Client from './plugin' -export const EventClient = - process.env.NODE_ENV !== 'development' ? class {} : Client.EventClient +class MockClass { + on(_: string, __: (...args: Array) => void) { + // No-op in production + } + onAll(_: (...args: Array) => void) { + // No-op in production + } + onAllPluginEvents(_: (...args: Array) => void) { + // No-op in production + } + emit(_: string, ...__: Array) { + // No-op in production + } + getPluginId() { + // No-op in production + } +} + +export const EventClient: typeof Client["EventClient"] = + process.env.NODE_ENV !== 'development' && process.env.NODE_ENV !== "test" ? MockClass as any : Client.EventClient diff --git a/packages/solid-devtools/package.json b/packages/solid-devtools/package.json index b9b384e1..e36fe735 100644 --- a/packages/solid-devtools/package.json +++ b/packages/solid-devtools/package.json @@ -39,8 +39,8 @@ "default": "./dist/esm/production.js" }, "require": { - "types": "./dist/cjs/production.d.ts", - "default": "./dist/cjs/production.js" + "types": "./dist/cjs/production.d.cts", + "default": "./dist/cjs/production.cjs" } }, "./package.json": "./package.json" @@ -72,4 +72,4 @@ "peerDependencies": { "solid-js": ">=1.9.7" } -} +} \ No newline at end of file From e12cfb0113f0031e0eb0d2d3c8aea8b7e3cda33b Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 06:20:07 +0000 Subject: [PATCH 4/4] ci: apply automated fixes --- examples/react/start/package.json | 2 +- packages/event-bus-client/src/index.ts | 6 ++++-- packages/solid-devtools/package.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/react/start/package.json b/examples/react/start/package.json index 967dc73f..46c4db4b 100644 --- a/examples/react/start/package.json +++ b/examples/react/start/package.json @@ -47,4 +47,4 @@ "vitest": "^3.1.2", "web-vitals": "^4.2.4" } -} \ No newline at end of file +} diff --git a/packages/event-bus-client/src/index.ts b/packages/event-bus-client/src/index.ts index 492c3965..64c65978 100644 --- a/packages/event-bus-client/src/index.ts +++ b/packages/event-bus-client/src/index.ts @@ -18,5 +18,7 @@ class MockClass { } } -export const EventClient: typeof Client["EventClient"] = - process.env.NODE_ENV !== 'development' && process.env.NODE_ENV !== "test" ? MockClass as any : Client.EventClient +export const EventClient: (typeof Client)['EventClient'] = + process.env.NODE_ENV !== 'development' && process.env.NODE_ENV !== 'test' + ? (MockClass as any) + : Client.EventClient diff --git a/packages/solid-devtools/package.json b/packages/solid-devtools/package.json index e36fe735..94371446 100644 --- a/packages/solid-devtools/package.json +++ b/packages/solid-devtools/package.json @@ -72,4 +72,4 @@ "peerDependencies": { "solid-js": ">=1.9.7" } -} \ No newline at end of file +}