Skip to content

Commit 82a944f

Browse files
authored
fix(types): avoid leaking load-config types (#76)
1 parent 2f6e3f6 commit 82a944f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/rstack/src/config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { loadConfig, type LoadConfigResult } from '@rstackjs/load-config';
1+
import { loadConfig } from '@rstackjs/load-config';
22
import type { RsbuildConfigDefinition } from '@rsbuild/core';
33
import type { RslibConfigDefinition } from '@rslib/core';
44
import type { RslintConfig } from '@rslint/core';
@@ -18,8 +18,10 @@ export type Configs = {
1818
staged?: StagedConfig;
1919
};
2020

21-
type LoadedRstackConfig = Pick<LoadConfigResult, 'filePath' | 'dependencies'> & {
21+
type LoadedRstackConfig = {
2222
configs: Configs;
23+
filePath: string | null;
24+
dependencies: string[];
2325
};
2426

2527
type ConfigState = {

0 commit comments

Comments
 (0)