-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: specify path for changelog (#673)
Co-authored-by: shipjs <[email protected]>
- Loading branch information
Eunjae Lee
and
shipjs
authored
Nov 6, 2020
1 parent
67d45f0
commit 74531a3
Showing
8 changed files
with
378 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/node_modules/conventional-changelog-core/index.js b/node_modules/conventional-changelog-core/index.js | ||
index a7eb756..f095452 100644 | ||
--- a/node_modules/conventional-changelog-core/index.js | ||
+++ b/node_modules/conventional-changelog-core/index.js | ||
@@ -29,7 +29,7 @@ function conventionalChangelog (options, context, gitRawCommitsOpts, parserOpts, | ||
return gitRawCommits(_.merge({}, gitRawCommitsOpts, { | ||
from: from, | ||
to: to | ||
- })) | ||
+ }), gitRawExecOpts) | ||
.on('error', function (err) { | ||
if (!commitsErrorThrown) { | ||
setImmediate(commitsStream.emit.bind(commitsStream), 'error', err) | ||
diff --git a/node_modules/conventional-changelog-core/lib/merge-config.js b/node_modules/conventional-changelog-core/lib/merge-config.js | ||
index 8428bf4..72699b8 100644 | ||
--- a/node_modules/conventional-changelog-core/lib/merge-config.js | ||
+++ b/node_modules/conventional-changelog-core/lib/merge-config.js | ||
@@ -21,7 +21,7 @@ const rhosts = /github|bitbucket|gitlab/i | ||
|
||
function semverTagsPromise (options) { | ||
return Q.Promise(function (resolve, reject) { | ||
- gitSemverTags({ lernaTags: !!options.lernaPackage, package: options.lernaPackage, tagPrefix: options.tagPrefix, skipUnstable: options.skipUnstable }, function (err, result) { | ||
+ gitSemverTags({ lernaTags: !!options.lernaPackage, package: options.lernaPackage, tagPrefix: options.tagPrefix, skipUnstable: options.skipUnstable, cwd: options.pkg.path }, function (err, result) { | ||
if (err) { | ||
reject(err) | ||
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/node_modules/conventional-recommended-bump/index.js b/node_modules/conventional-recommended-bump/index.js | ||
index 51c8a8a..c4cdc77 100644 | ||
--- a/node_modules/conventional-recommended-bump/index.js | ||
+++ b/node_modules/conventional-recommended-bump/index.js | ||
@@ -69,7 +69,7 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg | ||
format: `%B%n-hash-%n%H`, | ||
from: tags[0] || ``, | ||
path: options.path | ||
- }) | ||
+ }, { cwd: options.path }) | ||
.pipe(conventionalCommitsParser(parserOpts)) | ||
.pipe(concat(data => { | ||
const commits = options.ignoreReverted ? conventionalCommitsFilter(data) : data | ||
@@ -92,7 +92,8 @@ function conventionalRecommendedBump (optionsArgument, parserOptsArgument, cbArg | ||
{ | ||
lernaTags: !!options.lernaPackage, | ||
package: options.lernaPackage, | ||
- tagPrefix: options.tagPrefix | ||
+ tagPrefix: options.tagPrefix, | ||
+ cwd: options.path | ||
}) | ||
}).catch(err => cb(err)) | ||
} |
Oops, something went wrong.