From e18bf67e366c431a6bea08a9965b7d40866119e2 Mon Sep 17 00:00:00 2001 From: Chris Villa Date: Wed, 5 Jul 2023 17:59:59 +0100 Subject: [PATCH] fix: include .gitignore in recipes --- packages/create-puck-app/index.js | 3 ++- packages/create-puck-app/package.json | 3 --- .../create-puck-app/templates/next/{.gitignore => gitignore} | 0 3 files changed, 2 insertions(+), 4 deletions(-) rename packages/create-puck-app/templates/next/{.gitignore => gitignore} (100%) 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