Skip to content

Commit

Permalink
fix: rename _github folder to .github if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Nov 27, 2024
1 parent ac024b4 commit b52d0e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/steps/selectTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ export default async function selectTemplate(argTargetDir: string | undefined):
}
}
}

// if exist root/_github folder, rename it to .github
const srcGitHubDir = path.join(rootFolder, '_github')
if (fs.existsSync(srcGitHubDir)) {
fs.renameSync(srcGitHubDir, path.join(rootFolder, '.github'))
}


console.log(`Done.`)

return {
Expand Down

0 comments on commit b52d0e4

Please sign in to comment.