@modern-js/plugin-changeset 2.34.0 → 2.35.1
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.
|
@@ -115,8 +115,7 @@ async function getReleaseInfo(commit, commitObj, repo, authToken) {
|
|
|
115
115
|
return commitObj;
|
|
116
116
|
}
|
|
117
117
|
function getReleaseNoteLine(commit, customReleaseNoteFunction, lang = "en") {
|
|
118
|
-
|
|
119
|
-
if ((_customReleaseNoteFunction = customReleaseNoteFunction) === null || _customReleaseNoteFunction === void 0 ? void 0 : _customReleaseNoteFunction.getReleaseNoteLine) {
|
|
118
|
+
if (customReleaseNoteFunction === null || customReleaseNoteFunction === void 0 ? void 0 : customReleaseNoteFunction.getReleaseNoteLine) {
|
|
120
119
|
return customReleaseNoteFunction.getReleaseNoteLine(commit, lang);
|
|
121
120
|
}
|
|
122
121
|
const { repository, pullRequestId, summary, summary_zh, author } = commit;
|
|
@@ -178,7 +177,6 @@ async function genReleaseNote(options) {
|
|
|
178
177
|
}
|
|
179
178
|
};
|
|
180
179
|
for (const changeset of changesets) {
|
|
181
|
-
var _customReleaseNoteFunction;
|
|
182
180
|
const { stdout } = await (0, _utils.execa)("git", [
|
|
183
181
|
"log",
|
|
184
182
|
"--pretty=format:%h--%s--%ae",
|
|
@@ -194,7 +192,7 @@ async function genReleaseNote(options) {
|
|
|
194
192
|
summary: firstLine,
|
|
195
193
|
summary_zh: futureLines.filter((l) => Boolean(l)).join("\n")
|
|
196
194
|
};
|
|
197
|
-
if (
|
|
195
|
+
if (customReleaseNoteFunction === null || customReleaseNoteFunction === void 0 ? void 0 : customReleaseNoteFunction.getReleaseInfo) {
|
|
198
196
|
commitObj = await customReleaseNoteFunction.getReleaseInfo(stdout, commitObj);
|
|
199
197
|
} else {
|
|
200
198
|
commitObj = await getReleaseInfo(stdout, commitObj, repository, options.authToken);
|
|
@@ -74,8 +74,7 @@ export async function getReleaseInfo(commit, commitObj, repo, authToken) {
|
|
|
74
74
|
return commitObj;
|
|
75
75
|
}
|
|
76
76
|
export function getReleaseNoteLine(commit, customReleaseNoteFunction, lang = "en") {
|
|
77
|
-
|
|
78
|
-
if ((_customReleaseNoteFunction = customReleaseNoteFunction) === null || _customReleaseNoteFunction === void 0 ? void 0 : _customReleaseNoteFunction.getReleaseNoteLine) {
|
|
77
|
+
if (customReleaseNoteFunction === null || customReleaseNoteFunction === void 0 ? void 0 : customReleaseNoteFunction.getReleaseNoteLine) {
|
|
79
78
|
return customReleaseNoteFunction.getReleaseNoteLine(commit, lang);
|
|
80
79
|
}
|
|
81
80
|
const { repository, pullRequestId, summary, summary_zh, author } = commit;
|
|
@@ -137,7 +136,6 @@ export async function genReleaseNote(options) {
|
|
|
137
136
|
}
|
|
138
137
|
};
|
|
139
138
|
for (const changeset of changesets) {
|
|
140
|
-
var _customReleaseNoteFunction;
|
|
141
139
|
const { stdout } = await execa("git", [
|
|
142
140
|
"log",
|
|
143
141
|
"--pretty=format:%h--%s--%ae",
|
|
@@ -153,7 +151,7 @@ export async function genReleaseNote(options) {
|
|
|
153
151
|
summary: firstLine,
|
|
154
152
|
summary_zh: futureLines.filter((l) => Boolean(l)).join("\n")
|
|
155
153
|
};
|
|
156
|
-
if (
|
|
154
|
+
if (customReleaseNoteFunction === null || customReleaseNoteFunction === void 0 ? void 0 : customReleaseNoteFunction.getReleaseInfo) {
|
|
157
155
|
commitObj = await customReleaseNoteFunction.getReleaseInfo(stdout, commitObj);
|
|
158
156
|
} else {
|
|
159
157
|
commitObj = await getReleaseInfo(stdout, commitObj, repository, options.authToken);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.35.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"resolve-from": "^5.0.0",
|
|
53
53
|
"axios": "^1.2.1",
|
|
54
54
|
"@swc/helpers": "0.5.1",
|
|
55
|
-
"@modern-js/plugin-i18n": "2.
|
|
56
|
-
"@modern-js/utils": "2.
|
|
55
|
+
"@modern-js/plugin-i18n": "2.35.1",
|
|
56
|
+
"@modern-js/utils": "2.35.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/jest": "^29",
|
|
60
60
|
"@types/node": "^14",
|
|
61
61
|
"typescript": "^5",
|
|
62
62
|
"jest": "^29",
|
|
63
|
-
"@modern-js/core": "2.
|
|
64
|
-
"@scripts/
|
|
65
|
-
"@scripts/
|
|
63
|
+
"@modern-js/core": "2.35.1",
|
|
64
|
+
"@scripts/build": "2.35.1",
|
|
65
|
+
"@scripts/jest-config": "2.35.1"
|
|
66
66
|
},
|
|
67
67
|
"sideEffects": false,
|
|
68
68
|
"publishConfig": {
|