Skip to content

Commit 5140c67

Browse files
committed
chore: add all files to git when publishing new version
1 parent 56a3373 commit 5140c67

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/release.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ const childProcess = require('./child-process.js');
114114
changedFiles.add(path.resolve('./package-lock.json'));
115115

116116
// 6. "git add" all changed files
117-
options.dryRun
118-
? await gitUtils.gitAdd(null, { cwd, dryRun: options.dryRun })
119-
: await gitUtils.gitAdd(Array.from(changedFiles), { cwd, dryRun: options.dryRun });
117+
await gitUtils.gitAdd(null, { cwd, dryRun: options.dryRun });
120118

121119
// show git changes to user so he can confirm the changes are ok
122120
const shouldCommitChanges = await promptConfirmation(`${chalk.bgMagenta(dryRunPrefix)} Ready to tag version "${newTag}" and push commits to remote? Choose No to cancel.`);

0 commit comments

Comments
 (0)