@varlet/release 2.2.3-alpha.1779709734936 → 2.2.3-alpha.1779709786145
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/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{src-DR5i3Sn4.js → src-DZZGwlLR.js} +5 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as release, i as lockfileCheck, p as commitLint, s as publish, u as changelog } from "./src-
|
|
2
|
+
import { c as release, i as lockfileCheck, p as commitLint, s as publish, u as changelog } from "./src-DZZGwlLR.js";
|
|
3
3
|
import { cli, command } from "cleye";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/cli.ts
|
|
6
6
|
cli({
|
|
7
7
|
name: "vr",
|
|
8
|
-
version: "2.2.3-alpha.
|
|
8
|
+
version: "2.2.3-alpha.1779709786145",
|
|
9
9
|
commands: [
|
|
10
10
|
command({
|
|
11
11
|
name: "release",
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getPackageJsons, c as release, d as COMMIT_HEADER_RE, f as COMMIT_MESSAGE_RE, h as isVersionCommitMessage, i as lockfileCheck, l as updateVersion, m as getCommitMessage, n as getLockfilePath, o as isSameVersion, p as commitLint, r as installDependencies, s as publish, t as checkLockfileSync, u as changelog } from "./src-
|
|
1
|
+
import { a as getPackageJsons, c as release, d as COMMIT_HEADER_RE, f as COMMIT_MESSAGE_RE, h as isVersionCommitMessage, i as lockfileCheck, l as updateVersion, m as getCommitMessage, n as getLockfilePath, o as isSameVersion, p as commitLint, r as installDependencies, s as publish, t as checkLockfileSync, u as changelog } from "./src-DZZGwlLR.js";
|
|
2
2
|
export { COMMIT_HEADER_RE, COMMIT_MESSAGE_RE, changelog, checkLockfileSync, commitLint, getCommitMessage, getLockfilePath, getPackageJsons, installDependencies, isSameVersion, isVersionCommitMessage, lockfileCheck, publish, release, updateVersion };
|
|
@@ -280,7 +280,6 @@ async function publish({ preRelease, checkRemoteVersion, npmTag, otp, cwd = proc
|
|
|
280
280
|
const normalizedOtp = otp?.trim();
|
|
281
281
|
if (normalizedOtp) args.push("--otp", normalizedOtp);
|
|
282
282
|
try {
|
|
283
|
-
console.log("pnpm", args);
|
|
284
283
|
const ret = await x("pnpm", args, { throwOnError: true });
|
|
285
284
|
s.stop("Publish all packages successfully");
|
|
286
285
|
logStdout(ret);
|
|
@@ -349,11 +348,7 @@ function computeExpectVersion(currentVersion, type) {
|
|
|
349
348
|
async function getReleaseType(currentVersion) {
|
|
350
349
|
return unwrapPromptResult(await select({
|
|
351
350
|
message: `Please select release type`,
|
|
352
|
-
options:
|
|
353
|
-
...RELEASE_TYPES.slice(0, 3),
|
|
354
|
-
"prerelease",
|
|
355
|
-
...RELEASE_TYPES.slice(3)
|
|
356
|
-
] : RELEASE_TYPES).map((type) => {
|
|
351
|
+
options: RELEASE_TYPES.map((type) => {
|
|
357
352
|
return {
|
|
358
353
|
label: `${type} (${computeExpectVersion(currentVersion, type)})`,
|
|
359
354
|
value: type
|
|
@@ -390,7 +385,10 @@ async function release(options) {
|
|
|
390
385
|
logger.error("Your package is missing the version field");
|
|
391
386
|
return;
|
|
392
387
|
}
|
|
393
|
-
if (!await isWorktreeEmpty())
|
|
388
|
+
if (!await isWorktreeEmpty()) {
|
|
389
|
+
logger.error("Git worktree is not empty, please commit changed");
|
|
390
|
+
return;
|
|
391
|
+
}
|
|
394
392
|
if (!await confirmRefs(options.remote)) return;
|
|
395
393
|
if (!options.skipNpmPublish && !await confirmRegistry()) return;
|
|
396
394
|
const { isPreRelease, expectVersion } = await getReleaseVersion(currentVersion);
|