Skip to content

Commit

Permalink
fix: reset version on generated cli (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Apr 12, 2024
1 parent 1c040b9 commit af00332
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export default class Generate extends GeneratorCommand<typeof Generate> {
dirname: bin,
},
repository: `${owner}/${repository}`,
version: '0.0.0',
}

if (packageManager !== 'yarn') {
Expand All @@ -224,6 +225,7 @@ export default class Generate extends GeneratorCommand<typeof Generate> {
const {default: sortPackageJson} = await import('sort-package-json')
await writeFile(join(location, 'package.json'), JSON.stringify(sortPackageJson(updatedPackageJSON), null, 2))
await rm(join(location, 'LICENSE'))
await rm(join(location, '.github', 'workflows', 'automerge.yml'))

const existing = (await readFile(join(location, '.gitignore'), 'utf8')).split('\n')
const updated =
Expand Down

0 comments on commit af00332

Please sign in to comment.