diff --git a/packages/create-puck-app/index.js b/packages/create-puck-app/index.js index 4b87afb3a4..074c60781d 100755 --- a/packages/create-puck-app/index.js +++ b/packages/create-puck-app/index.js @@ -124,7 +124,8 @@ program const filePath = path.join(templatePath, templateFile); const targetPath = filePath .replace(templatePath, appPath) - .replace(".hbs", ""); + .replace(".hbs", "") + .replace("gitignore", ".gitignore"); // .gitignore gets ignored by npm during publish, so we have to rename it let data; diff --git a/packages/create-puck-app/package.json b/packages/create-puck-app/package.json index 577f76d38c..b2275d0316 100644 --- a/packages/create-puck-app/package.json +++ b/packages/create-puck-app/package.json @@ -7,9 +7,6 @@ "bin": { "create-puck-app": "./index.js" }, - "files": [ - "templates" - ], "dependencies": { "commander": "^10.0.1", "handlebars": "^4.7.7", diff --git a/packages/create-puck-app/templates/next/.gitignore b/packages/create-puck-app/templates/next/gitignore similarity index 100% rename from packages/create-puck-app/templates/next/.gitignore rename to packages/create-puck-app/templates/next/gitignore