Skip to content

Commit

Permalink
rename gitignore -> .gitignore during template expansion (#360)
Browse files Browse the repository at this point in the history
Co-authored-by: Harry Pierson <[email protected]>
  • Loading branch information
devhawk and Harry Pierson authored Mar 25, 2024
1 parent eb38cf9 commit e3aa942
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/create/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export async function init(appName: string, templateName: string) {

const targets = ["**"]
await copy(templatePath, targets, appName);
fs.renameSync(path.resolve(appName, 'gitignore.template'), path.resolve(appName, '.gitignore'));

const packageJsonName = path.resolve(appName, 'package.json');
const packageJson: { name: string } = JSON.parse(fs.readFileSync(packageJsonName, 'utf-8')) as { name: string };
Expand Down
File renamed without changes.

0 comments on commit e3aa942

Please sign in to comment.