Skip to content

Commit e8a3ed8

Browse files
committed
chore(git-clean-build): Fix yarn install dir
1 parent 28c6937 commit e8a3ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/git-clean-build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ try {
8080
repoRoot,
8181
'packages/create-cedar-rsc-app',
8282
)
83-
process.chdir(createCedarRscAppPath)
84-
await $`yarn install`
83+
await $({ cwd: createCedarRscAppPath })`yarn install`
8584

8685
console.log('All tasks completed successfully!')
8786
console.log(`Returning to original directory: ${originalCwd}`)
87+
process.chdir(originalCwd)
8888
} catch (error) {
8989
console.error('Error during clean-build process:', error)
9090
process.exit(1)

0 commit comments

Comments
 (0)