Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 committed Jul 31, 2024
1 parent b35c5ea commit 50b3f51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions e2e/cases/dts/bundle-false/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export default defineConfig({
}),
generateBundleCjsConfig(__dirname, {
bundle: false,
dts: {
bundle: false,
},
}),
],
source: {
Expand Down
6 changes: 5 additions & 1 deletion e2e/cases/dts/bundle/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export default defineConfig({
bundle: true,
},
}),
generateBundleCjsConfig(__dirname),
generateBundleCjsConfig(__dirname, {
dts: {
bundle: true,
},
}),
],
source: {
entry: {
Expand Down
1 change: 1 addition & 0 deletions e2e/cases/dts/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { expect, test } from 'vitest';
import { getResults } from '#shared';
import { loadConfig } from '../../../packages/core/src/config';

// TODO: we use npx here to test since node api will directly exit main process
test('dts when bundle: false', async () => {
const fixturePath = join(__dirname, 'bundle-false');
const rslibConfig = await loadConfig(join(fixturePath, 'rslib.config.ts'));
Expand Down

0 comments on commit 50b3f51

Please sign in to comment.