@varlet/release 0.4.2 → 0.4.4
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/dist/index.cjs +4 -8
- package/dist/index.js +4 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -165,7 +165,7 @@ async function isSameVersion(version) {
|
|
|
165
165
|
throwOnError: true
|
|
166
166
|
});
|
|
167
167
|
s.warn({
|
|
168
|
-
text: `The npm package has a same remote version ${config.version}.`
|
|
168
|
+
text: `The npm package has a same remote version ${version ?? config.version}.`
|
|
169
169
|
});
|
|
170
170
|
return true;
|
|
171
171
|
} catch {
|
|
@@ -186,13 +186,9 @@ async function publish({ preRelease, checkRemoteVersion, npmTag }) {
|
|
|
186
186
|
} else if (npmTag) {
|
|
187
187
|
args.push("--tag", npmTag);
|
|
188
188
|
}
|
|
189
|
-
const ret = await (0, import_tinyexec.x)("pnpm", args);
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
} else {
|
|
193
|
-
s.success({ text: "Publish all packages successfully" });
|
|
194
|
-
ret.stdout && import_rslog.logger.log(ret.stdout);
|
|
195
|
-
}
|
|
189
|
+
const ret = await (0, import_tinyexec.x)("pnpm", args, { throwOnError: true });
|
|
190
|
+
s.success({ text: "Publish all packages successfully" });
|
|
191
|
+
ret.stdout && import_rslog.logger.log(ret.stdout);
|
|
196
192
|
}
|
|
197
193
|
async function pushGit(version, remote = "origin", skipGitTag = false) {
|
|
198
194
|
const s = (0, import_nanospinner2.createSpinner)("Pushing to remote git repository").start();
|
package/dist/index.js
CHANGED
|
@@ -121,7 +121,7 @@ async function isSameVersion(version) {
|
|
|
121
121
|
throwOnError: true
|
|
122
122
|
});
|
|
123
123
|
s.warn({
|
|
124
|
-
text: `The npm package has a same remote version ${config.version}.`
|
|
124
|
+
text: `The npm package has a same remote version ${version ?? config.version}.`
|
|
125
125
|
});
|
|
126
126
|
return true;
|
|
127
127
|
} catch {
|
|
@@ -142,13 +142,9 @@ async function publish({ preRelease, checkRemoteVersion, npmTag }) {
|
|
|
142
142
|
} else if (npmTag) {
|
|
143
143
|
args.push("--tag", npmTag);
|
|
144
144
|
}
|
|
145
|
-
const ret = await exec("pnpm", args);
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
} else {
|
|
149
|
-
s.success({ text: "Publish all packages successfully" });
|
|
150
|
-
ret.stdout && logger.log(ret.stdout);
|
|
151
|
-
}
|
|
145
|
+
const ret = await exec("pnpm", args, { throwOnError: true });
|
|
146
|
+
s.success({ text: "Publish all packages successfully" });
|
|
147
|
+
ret.stdout && logger.log(ret.stdout);
|
|
152
148
|
}
|
|
153
149
|
async function pushGit(version, remote = "origin", skipGitTag = false) {
|
|
154
150
|
const s = createSpinner2("Pushing to remote git repository").start();
|