release-please 13.4.4 → 13.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
### [13.4.5](https://github.com/googleapis/release-please/compare/v13.4.4...v13.4.5) (2022-02-01)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* read packageName from config ([#1270](https://github.com/googleapis/release-please/issues/1270)) ([e953e1a](https://github.com/googleapis/release-please/commit/e953e1a387f6124fbacb7952b5451ca43bd498fa))
|
|
13
|
+
|
|
7
14
|
### [13.4.4](https://github.com/googleapis/release-please/compare/v13.4.3...v13.4.4) (2022-01-26)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -65,7 +65,8 @@ class BaseStrategy {
|
|
|
65
65
|
return this.component || (await this.getDefaultComponent());
|
|
66
66
|
}
|
|
67
67
|
async getDefaultComponent() {
|
|
68
|
-
|
|
68
|
+
var _a;
|
|
69
|
+
return this.normalizeComponent((_a = this.packageName) !== null && _a !== void 0 ? _a : (await this.getDefaultPackageName()));
|
|
69
70
|
}
|
|
70
71
|
async getDefaultPackageName() {
|
|
71
72
|
return '';
|
|
@@ -117,6 +118,7 @@ class BaseStrategy {
|
|
|
117
118
|
* open a pull request.
|
|
118
119
|
*/
|
|
119
120
|
async buildReleasePullRequest(commits, latestRelease, draft, labels = []) {
|
|
121
|
+
var _a;
|
|
120
122
|
const conventionalCommits = await this.postProcessCommits(commit_1.parseConventionalCommits(commits));
|
|
121
123
|
logger_1.logger.info(`Considering: ${conventionalCommits.length} commits`);
|
|
122
124
|
if (conventionalCommits.length === 0) {
|
|
@@ -125,6 +127,8 @@ class BaseStrategy {
|
|
|
125
127
|
}
|
|
126
128
|
const newVersion = await this.buildNewVersion(conventionalCommits, latestRelease);
|
|
127
129
|
const versionsMap = await this.updateVersionsMap(await this.buildVersionsMap(conventionalCommits), conventionalCommits);
|
|
130
|
+
this.packageName = (_a = this.packageName) !== null && _a !== void 0 ? _a : (await this.getDefaultPackageName());
|
|
131
|
+
logger_1.logger.debug('packageName', this.packageName);
|
|
128
132
|
const component = await this.getComponent();
|
|
129
133
|
logger_1.logger.debug('component:', component);
|
|
130
134
|
const newVersionTag = new tag_name_1.TagName(newVersion, this.includeComponentInTag ? component : undefined, this.tagSeparator);
|
|
@@ -23,7 +23,7 @@ class Node extends base_1.BaseStrategy {
|
|
|
23
23
|
async buildUpdates(options) {
|
|
24
24
|
const updates = [];
|
|
25
25
|
const version = options.newVersion;
|
|
26
|
-
const packageName = this.
|
|
26
|
+
const packageName = this.packageName || '';
|
|
27
27
|
const lockFiles = ['package-lock.json', 'npm-shrinkwrap.json'];
|
|
28
28
|
lockFiles.forEach(lockFile => {
|
|
29
29
|
updates.push({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-please",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.5",
|
|
4
4
|
"description": "generate release PRs based on the conventionalcommits.org spec",
|
|
5
5
|
"main": "./build/src/index.js",
|
|
6
6
|
"bin": "./build/src/bin/release-please.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"gts": "^3.0.0",
|
|
54
54
|
"mocha": "^9.0.0",
|
|
55
55
|
"nock": "^13.0.0",
|
|
56
|
-
"sinon": "
|
|
56
|
+
"sinon": "13.0.0",
|
|
57
57
|
"snap-shot-it": "^7.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|