Skip to content

Commit

Permalink
fix(create-analog): fix initial commit and gitignore file in template…
Browse files Browse the repository at this point in the history
… app (#84)
  • Loading branch information
brandonroberts authored Sep 14, 2022
1 parent 985de17 commit c431cd8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/create-analog/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
__tests__
yarn.lock
project.json
2 changes: 1 addition & 1 deletion packages/create-analog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async function init() {
// Fail Silent
// Can fail when user does not have global git credentials
try {
execSync(`git commit -m "initial commit"`);
execSync(`cd ${targetDir} && git commit -m "initial commit"`);
} catch {}

console.log(`\nDone. Now run:\n`);
Expand Down
2 changes: 1 addition & 1 deletion packages/create-analog/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/packages/create-analog",
"command": "cpy packages/create-analog/* dist/"
"command": "cpy packages/create-analog/* !packages/create-analog/node_modules/ !packages/create-analog/project.json !packages/create-analog/__tests__/ !packages/create-analog/yarn.lock dist/"
}
},
"test": {
Expand Down

0 comments on commit c431cd8

Please sign in to comment.