Skip to content

Commit 8db0d24

Browse files
committed
fix build issue
1 parent 75cbb69 commit 8db0d24

File tree

3 files changed

+4
-33
lines changed

3 files changed

+4
-33
lines changed

packages/trpc-ui/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export { renderTrpcPanel } from "./render";
22
export type { TRPCPanelMeta } from "./meta";
33
export { parseRouterWithOptions } from "./parse/parseRouter";
4+
export { parseTRPCRouter } from "./parseV2/parse";

packages/trpc-ui/src/render.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import fs from "node:fs";
22
import { dirname } from "node:path";
33
import { fileURLToPath } from "node:url";
44
import type { AnyTRPCRouter } from "@trpc/server";
5-
import {
6-
type TrpcPanelExtraOptions,
7-
parseRouterWithOptions,
8-
} from "./parse/parseRouter";
5+
import { type TrpcPanelExtraOptions } from "./parse/parseRouter";
96

7+
import { parseTRPCRouter } from "./parseV2/parse";
108
export type Info = {
119
title?: string;
1210
description?: string;
@@ -75,12 +73,7 @@ export function renderTrpcPanel(router: AnyTRPCRouter, options: RenderOptions) {
7573
const bundleInjectionParams: InjectionParam[] = [
7674
{
7775
searchFor: routerReplaceSymbol,
78-
injectString: JSON.stringify(
79-
parseRouterWithOptions(router, {
80-
...defaultParseRouterOptions,
81-
...options,
82-
}),
83-
),
76+
injectString: JSON.stringify(parseTRPCRouter(router)),
8477
},
8578
{
8679
searchFor: optionsReplaceSymbol,

test.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)