Skip to content

Commit

Permalink
fix(index): remove backticks in git commit command and tidy logs
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jun 5, 2020
1 parent e06a18c commit 040c3c4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ try {
*/
const packageJsonPath = resolve(cwd, 'package.json');
if (existsSync(packageJsonPath)) {
log('`package.json` found');
log('Found `package.json`');
} else {
log('`package.json` not found, initializing new package...');
log('Unable to find `package.json`, initializing new package...');
exec('npm init --yes');
const packageJson = require(packageJsonPath);
packageJson.version = '1.0.0-alpha';
Expand Down Expand Up @@ -94,7 +94,7 @@ const filesPath = resolve(__dirname, 'files');
readdirSync(filesPath).forEach(filename => {
const source = resolve(filesPath, filename);
const destination = resolve(cwd, filename);
log(`Copying \`${filename}\`...`);
log(`Copying \`${filename}\``);
copyFileSync(source, destination);
isGitRepository && exec(`git add ${filename}`);
});
Expand All @@ -103,9 +103,6 @@ readdirSync(filesPath).forEach(filename => {
* Commit changes.
*/
log('Committing changes...');
isGitRepository &&
exec(
'git commit -m "chore: run `conventional-release-setup`" -m "https://github.com/remarkablemark/conventional-release-setup"'
);
isGitRepository && exec(`git commit -m "chore: run ${name} v${version}"`);

log(`${name} done`);
log(`Finished ${name}`);

0 comments on commit 040c3c4

Please sign in to comment.