diff --git a/packages/create/init.ts b/packages/create/init.ts index 79383e21d..7bb5b9a1a 100644 --- a/packages/create/init.ts +++ b/packages/create/init.ts @@ -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 }; diff --git a/packages/create/templates/hello/.gitignore b/packages/create/templates/hello/gitignore.template similarity index 100% rename from packages/create/templates/hello/.gitignore rename to packages/create/templates/hello/gitignore.template