Skip to content

Commit fbb8d67

Browse files
authored
fix(type): import type from 'src' (#109)
1 parent f0ac951 commit fbb8d67

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/plugin-dts/src/apiExtractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '@microsoft/api-extractor';
77
import { logger } from '@rsbuild/core';
88
import color from 'picocolors';
9-
import type { DtsEntry } from 'src';
9+
import type { DtsEntry } from './index';
1010
import { getTimeCost } from './utils';
1111

1212
export type BundleOptions = {

packages/plugin-dts/src/dts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import fs from 'node:fs';
22
import { basename, dirname, join, relative } from 'node:path';
33
import { logger } from '@rsbuild/core';
44
import color from 'picocolors';
5-
import type { DtsGenOptions } from 'src';
65
import ts from 'typescript';
6+
import type { DtsGenOptions } from './index';
77
import { emitDts } from './tsc';
88
import {
99
calcLongestCommonPath,

packages/plugin-dts/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import path, { join } from 'node:path';
55
import { type RsbuildConfig, logger } from '@rsbuild/core';
66
import fg from 'fast-glob';
77
import color from 'picocolors';
8-
import type { DtsEntry } from 'src';
98
import ts from 'typescript';
9+
import type { DtsEntry } from './index';
1010

1111
const { convertPathToPattern } = fg;
1212

0 commit comments

Comments
 (0)