Skip to content

Commit b7d2f84

Browse files
authored
fix: hoist rewrite in Rsbuild case (#122)
1 parent e4e7df3 commit b7d2f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/src/shared/git.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export async function cloneRepo(productName: string, caseName: string) {
100100

101101
// since rsbuild set hoist-pattern[]=[], we manually delete this config to run cases deps install
102102
if (productName === 'RSBUILD' && caseName === 'rsbuild-arco-pro') {
103-
await updateFile(join(localRepoPath, '.npmrc'), content =>
104-
content.replace(/^\s*hoist-pattern\[\]=\[\].*$/gm, ''),
103+
await updateFile(join(localRepoPath, 'pnpm-workspace.yaml'), content =>
104+
content.replace(/^\s*hoistPattern:\s*\[\].*$/gm, ''),
105105
);
106106
await runCommand(localRepoPath, 'pnpm i --force --no-frozen-lockfile');
107107
}

0 commit comments

Comments
 (0)