Skip to content

Commit

Permalink
fix: include .gitignore in recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jul 5, 2023
1 parent 1e187af commit e18bf67
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/create-puck-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 0 additions & 3 deletions packages/create-puck-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"bin": {
"create-puck-app": "./index.js"
},
"files": [
"templates"
],
"dependencies": {
"commander": "^10.0.1",
"handlebars": "^4.7.7",
Expand Down

0 comments on commit e18bf67

Please sign in to comment.