@varlet/release 2.2.3 → 2.2.4-alpha.1779719506772
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-Cz2-oOom.js → src-BCjkyQSx.js} +6 -5
- 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-BCjkyQSx.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.
|
|
8
|
+
version: "2.2.4-alpha.1779719506772",
|
|
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-BCjkyQSx.js";
|
|
2
2
|
export { COMMIT_HEADER_RE, COMMIT_MESSAGE_RE, changelog, checkLockfileSync, commitLint, getCommitMessage, getLockfilePath, getPackageJsons, installDependencies, isSameVersion, isVersionCommitMessage, lockfileCheck, publish, release, updateVersion };
|
|
@@ -278,7 +278,11 @@ async function publish({ preRelease, checkRemoteVersion, npmTag, cwd = process.c
|
|
|
278
278
|
if (preRelease) args.push("--tag", "alpha");
|
|
279
279
|
else if (npmTag) args.push("--tag", npmTag);
|
|
280
280
|
try {
|
|
281
|
-
|
|
281
|
+
console.log(process.stdin.isTTY);
|
|
282
|
+
const ret = await x("pnpm", args, {
|
|
283
|
+
throwOnError: true,
|
|
284
|
+
nodeOptions: { stdio: "inherit" }
|
|
285
|
+
});
|
|
282
286
|
s.stop("Publish all packages successfully");
|
|
283
287
|
logStdout(ret);
|
|
284
288
|
} catch (error) {
|
|
@@ -377,10 +381,7 @@ async function release(options) {
|
|
|
377
381
|
logger.error("Your package is missing the version field");
|
|
378
382
|
return;
|
|
379
383
|
}
|
|
380
|
-
if (!await isWorktreeEmpty())
|
|
381
|
-
logger.error("Git worktree is not empty, please commit changed");
|
|
382
|
-
return;
|
|
383
|
-
}
|
|
384
|
+
if (!await isWorktreeEmpty()) logger.error("Git worktree is not empty, please commit changed");
|
|
384
385
|
if (!await confirmRefs(options.remote)) return;
|
|
385
386
|
if (!options.skipNpmPublish && !await confirmRegistry()) return;
|
|
386
387
|
const { isPreRelease, expectVersion } = await getReleaseVersion(currentVersion);
|