From 5140c676d6a7eace0f7a2e2a3bb64f581d7170ce Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Tue, 31 Oct 2023 20:05:17 -0400 Subject: [PATCH] chore: add all files to git when publishing new version --- scripts/release.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/release.js b/scripts/release.js index 5cf318e3..f28d93c8 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -114,9 +114,7 @@ const childProcess = require('./child-process.js'); changedFiles.add(path.resolve('./package-lock.json')); // 6. "git add" all changed files - options.dryRun - ? await gitUtils.gitAdd(null, { cwd, dryRun: options.dryRun }) - : await gitUtils.gitAdd(Array.from(changedFiles), { cwd, dryRun: options.dryRun }); + await gitUtils.gitAdd(null, { cwd, dryRun: options.dryRun }); // show git changes to user so he can confirm the changes are ok const shouldCommitChanges = await promptConfirmation(`${chalk.bgMagenta(dryRunPrefix)} Ready to tag version "${newTag}" and push commits to remote? Choose No to cancel.`);