Skip to content

Commit 09697d4

Browse files
committed
chore: update
1 parent 9909939 commit 09697d4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/plugin-dts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type ChildProcess, fork } from 'node:child_process';
2-
import { dirname, extname, join, relative } from 'node:path';
2+
import { dirname, extname, join } from 'node:path';
33
import { fileURLToPath } from 'node:url';
44
import { type RsbuildConfig, type RsbuildPlugin, logger } from '@rsbuild/core';
55
import color from 'picocolors';

tests/integration/dts/index.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,13 +611,16 @@ describe('use with other features', async () => {
611611
describe('check tsconfig.json field', async () => {
612612
test('check whether declarationDir is resolved outside from project root', async () => {
613613
const fixturePath = join(__dirname, 'check', 'outside-root');
614+
console.log(normalize(join(__dirname, 'check/tsconfig/dist')));
614615
const { logs, restore } = proxyConsole();
615616
const { files } = await buildAndGetResults({
616617
fixturePath,
617618
type: 'dts',
618619
});
619620
const logStrings = logs.map((log) => stripAnsi(log));
620621

622+
restore();
623+
console.log('logStrings: ', logStrings);
621624
expect(files.esm).toMatchInlineSnapshot('undefined');
622625
expect(
623626
logStrings.some((log) =>
@@ -626,7 +629,5 @@ describe('check tsconfig.json field', async () => {
626629
),
627630
),
628631
).toEqual(true);
629-
630-
restore();
631632
});
632633
});

0 commit comments

Comments
 (0)