From 6256d8920341c5db714ce34f3c7fce3280052193 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 22 Jul 2026 22:32:18 +0800 Subject: [PATCH] fix(types): avoid leaking load-config types --- packages/rstack/src/config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/rstack/src/config.ts b/packages/rstack/src/config.ts index 3b116b6..81fa02f 100644 --- a/packages/rstack/src/config.ts +++ b/packages/rstack/src/config.ts @@ -1,4 +1,4 @@ -import { loadConfig, type LoadConfigResult } from '@rstackjs/load-config'; +import { loadConfig } from '@rstackjs/load-config'; import type { RsbuildConfigDefinition } from '@rsbuild/core'; import type { RslibConfigDefinition } from '@rslib/core'; import type { RslintConfig } from '@rslint/core'; @@ -18,8 +18,10 @@ export type Configs = { staged?: StagedConfig; }; -type LoadedRstackConfig = Pick & { +type LoadedRstackConfig = { configs: Configs; + filePath: string | null; + dependencies: string[]; }; type ConfigState = {