Skip to content

Commit

Permalink
fix(crwa): use fs.renameSync instead of fs.rename (#9787)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar authored Jan 1, 2024
1 parent d8a4bf3 commit d326b07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -756,13 +756,9 @@ jobs:
sudo apt-get install expect
./tests/e2e_prompts.sh
sleep 1
./tests/e2e_prompts_git.sh
sleep 1
./tests/e2e_prompts_m.sh
sleep 1
./tests/e2e_prompts_ts.sh
sleep 1
./tests/e2e_prompts_overwrite.sh
working-directory: ./packages/create-redwood-app
env:
Expand Down
2 changes: 1 addition & 1 deletion packages/create-redwood-app/src/create-redwood-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ async function createProjectFiles(appDir, { templateDir, overwrite }) {
fs.copySync(templateDir, newAppDir, { overwrite })

// .gitignore is renamed here to force file inclusion during publishing
fs.rename(
fs.renameSync(
path.join(newAppDir, 'gitignore.template'),
path.join(newAppDir, '.gitignore')
)
Expand Down

0 comments on commit d326b07

Please sign in to comment.