Skip to content

Commit 50ff796

Browse files
committed
test: fix shims disable test
1 parent 0a56962 commit 50ff796

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/integration/shims/esm/rslibShimsDisabled.config.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ import config from './rslib.config';
44
export default defineConfig({
55
...config,
66
lib: [config.lib[0]!, config.lib[2]!].map((libConfig) => {
7-
if (typeof libConfig.output!.distPath === 'object') {
8-
libConfig.output!.distPath!.root =
9-
libConfig.output!.distPath!.root!.replace(
10-
'./dist/enabled',
11-
'./dist/disabled',
12-
);
7+
if (typeof libConfig.output!.distPath === 'string') {
8+
libConfig.output!.distPath = libConfig.output!.distPath.replace(
9+
'./dist/enabled',
10+
'./dist/disabled',
11+
);
1312
}
1413
delete libConfig.shims;
1514
return libConfig;

0 commit comments

Comments
 (0)