Skip to content

Commit

Permalink
Fixing create message - init needs to be handled seperately to create.
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliecarey committed Jan 24, 2023
1 parent 5f2a89e commit fd1c981
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions bin/cli
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@ const argv = parse(process.argv, {
})

const verboseLogger = !argv.options.verbose
? () => {}
? () => {
}
: function () {
console.log('[verbose]', ...arguments)
}

const progressLogger = function () {
const versionOfInstaller = argv.options['created-from-version']
if (!versionOfInstaller) {
return
}
const version = splitSemverVersion(versionOfInstaller)
if (version.major === 13 && version.minor < 2) {
return
if (argv.command === 'init') {
const versionOfInstaller = argv.options['created-from-version']
if (!versionOfInstaller) {
return
}
const version = splitSemverVersion(versionOfInstaller)
if (version.major === 13 && version.minor < 2) {
return
}
}

console.log(' - ', ...arguments)
Expand Down Expand Up @@ -101,7 +104,8 @@ async function initialiseGitRepo () {
return
}

const failSilently = () => {}
const failSilently = () => {
}

const commitMessage = 'Create prototype'
await exec(`git commit -am "${commitMessage}"`)
Expand Down

0 comments on commit fd1c981

Please sign in to comment.