Skip to content

Commit

Permalink
fix: add correct output file to git (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldsht authored Mar 1, 2023
1 parent e61e2f6 commit 464b65e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ async function main() {
// Commit and tag changes for release mode
if (args.release) {
if (args.commit !== false) {
await execa("git", ["add", "CHANGELOG.md", "package.json"], { cwd });
const filesToAdd = [config.output, "package.json"].filter(f => f && typeof f === 'string') as string[]
await execa("git", ["add", ...filesToAdd], { cwd });
await execa(
"git",
["commit", "-m", `chore(release): v${config.newVersion}`],
Expand Down

0 comments on commit 464b65e

Please sign in to comment.