release-please 16.10.1 → 16.10.2
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/build/src/index.d.ts +1 -1
- package/build/src/index.js +1 -1
- package/build/src/manifest.d.ts +2 -0
- package/build/src/manifest.js +1 -0
- package/build/src/plugins/node-workspace.js +3 -0
- package/build/src/updaters/node/package-json.d.ts +6 -1
- package/build/src/updaters/node/package-json.js +6 -1
- package/package.json +2 -2
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
|
|
|
36
36
|
exports.configSchema = require('../../schemas/config.json');
|
|
37
37
|
exports.manifestSchema = require('../../schemas/manifest.json');
|
|
38
38
|
// x-release-please-start-version
|
|
39
|
-
exports.VERSION = '16.10.
|
|
39
|
+
exports.VERSION = '16.10.2';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
package/build/src/manifest.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export interface ReleaserConfig {
|
|
|
69
69
|
releaseLabels?: string[];
|
|
70
70
|
extraLabels?: string[];
|
|
71
71
|
initialVersion?: string;
|
|
72
|
+
signoff?: string;
|
|
72
73
|
changelogSections?: ChangelogSection[];
|
|
73
74
|
changelogPath?: string;
|
|
74
75
|
changelogType?: ChangelogNotesType;
|
|
@@ -99,6 +100,7 @@ interface ReleaserConfigJson {
|
|
|
99
100
|
'changelog-sections'?: ChangelogSection[];
|
|
100
101
|
'release-as'?: string;
|
|
101
102
|
'skip-github-release'?: boolean;
|
|
103
|
+
signoff?: string;
|
|
102
104
|
draft?: boolean;
|
|
103
105
|
prerelease?: boolean;
|
|
104
106
|
'draft-pull-request'?: boolean;
|
package/build/src/manifest.js
CHANGED
|
@@ -114,6 +114,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
|
|
|
114
114
|
const updater = new package_json_1.PackageJson({
|
|
115
115
|
version: newVersion,
|
|
116
116
|
versionsMap: updatedVersions,
|
|
117
|
+
updatePeerDependencies: this.updatePeerDependencies,
|
|
117
118
|
});
|
|
118
119
|
const dependencyNotes = getChangelogDepsNotes(pkg, updatedPackage, updatedVersions, this.logger);
|
|
119
120
|
existingCandidate.pullRequest.updates =
|
|
@@ -194,6 +195,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
|
|
|
194
195
|
updater: new package_json_1.PackageJson({
|
|
195
196
|
version: newVersion,
|
|
196
197
|
versionsMap: updatedVersions,
|
|
198
|
+
updatePeerDependencies: this.updatePeerDependencies,
|
|
197
199
|
}),
|
|
198
200
|
},
|
|
199
201
|
{
|
|
@@ -202,6 +204,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
|
|
|
202
204
|
updater: new package_json_1.PackageJson({
|
|
203
205
|
version: newVersion,
|
|
204
206
|
versionsMap: updatedVersions,
|
|
207
|
+
updatePeerDependencies: this.updatePeerDependencies,
|
|
205
208
|
}),
|
|
206
209
|
},
|
|
207
210
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '../../util/logger';
|
|
2
2
|
import { Version, VersionsMap } from '../../version';
|
|
3
|
-
import { DefaultUpdater } from '../default';
|
|
3
|
+
import { DefaultUpdater, UpdateOptions } from '../default';
|
|
4
4
|
export type PackageJsonDescriptor = {
|
|
5
5
|
name?: string;
|
|
6
6
|
resolved?: string;
|
|
@@ -11,10 +11,15 @@ export type PackageJsonDescriptor = {
|
|
|
11
11
|
peerDependencies?: Record<string, string>;
|
|
12
12
|
optionalDependencies?: Record<string, string>;
|
|
13
13
|
};
|
|
14
|
+
export interface PackageJsonOptions extends UpdateOptions {
|
|
15
|
+
updatePeerDependencies?: boolean;
|
|
16
|
+
}
|
|
14
17
|
/**
|
|
15
18
|
* This updates a Node.js package.json file's main version.
|
|
16
19
|
*/
|
|
17
20
|
export declare class PackageJson extends DefaultUpdater {
|
|
21
|
+
private updatePeerDependencies;
|
|
22
|
+
constructor(options: PackageJsonOptions);
|
|
18
23
|
/**
|
|
19
24
|
* Given initial file contents, return updated contents.
|
|
20
25
|
* @param {string} content The initial content
|
|
@@ -21,6 +21,11 @@ const default_1 = require("../default");
|
|
|
21
21
|
* This updates a Node.js package.json file's main version.
|
|
22
22
|
*/
|
|
23
23
|
class PackageJson extends default_1.DefaultUpdater {
|
|
24
|
+
constructor(options) {
|
|
25
|
+
super(options);
|
|
26
|
+
this.updatePeerDependencies = false;
|
|
27
|
+
this.updatePeerDependencies = options.updatePeerDependencies || false;
|
|
28
|
+
}
|
|
24
29
|
/**
|
|
25
30
|
* Given initial file contents, return updated contents.
|
|
26
31
|
* @param {string} content The initial content
|
|
@@ -40,7 +45,7 @@ class PackageJson extends default_1.DefaultUpdater {
|
|
|
40
45
|
if (parsed.devDependencies) {
|
|
41
46
|
updateDependencies(parsed.devDependencies, this.versionsMap);
|
|
42
47
|
}
|
|
43
|
-
if (parsed.peerDependencies) {
|
|
48
|
+
if (parsed.peerDependencies && this.updatePeerDependencies) {
|
|
44
49
|
updateDependencies(parsed.peerDependencies, this.versionsMap);
|
|
45
50
|
}
|
|
46
51
|
if (parsed.optionalDependencies) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-please",
|
|
3
|
-
"version": "16.10.
|
|
3
|
+
"version": "16.10.2",
|
|
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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/xmldom": "^0.1.31",
|
|
55
55
|
"@types/yargs": "^17.0.0",
|
|
56
56
|
"ajv": "^8.11.0",
|
|
57
|
-
"ajv-formats": "^
|
|
57
|
+
"ajv-formats": "^3.0.0",
|
|
58
58
|
"c8": "^9.0.0",
|
|
59
59
|
"chai": "^4.2.0",
|
|
60
60
|
"config-chain": "^1.1.13",
|