Skip to content

Commit debc46c

Browse files
authored
fix: rsbuild-arco-pro build error (#82)
1 parent 3fa83ed commit debc46c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/src/shared/git.ts

+9
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ export async function cloneRepo(productName: string, caseName: string) {
8989
);
9090

9191
await runCommand(localRepoPath, 'pnpm link ../scripts');
92+
93+
// since rsbuild set hoist-pattern[]=[], we manually delete this config to run cases deps install
94+
if (productName === 'RSBUILD' && caseName === 'rsbuild-arco-pro') {
95+
await updateFile(join(localRepoPath, '.npmrc'), content =>
96+
content.replace(/^\s*hoist-pattern\[\]=\[\].*$/gm, ''),
97+
);
98+
await runCommand(localRepoPath, 'pnpm i --force --no-frozen-lockfile');
99+
}
100+
92101
await runCommand(
93102
localRepoPath,
94103
'pnpm i --ignore-scripts --no-frozen-lockfile',

0 commit comments

Comments
 (0)