@peiyanlu/release 1.3.0 → 1.3.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.
- package/dist/cli.mjs +3 -2
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bold, compareUrl, each, heading, link, list, newline, segments, small, words } from "@conventional-changelog/template";
|
|
2
2
|
import { bumpPackageVersion, coloredStatus, eol, execAsync, getAuthenticatedUser, getGithubReleaseUrl, getGithubUrl, getLatestTag, getLogSince, getPackageInfo, getPackageUrl, getPublishedVersion, getRemoteList, getRemoteNames, getShortStatus, gitAddAll, gitAddSync, gitAddTracked, gitBranchCurrent, gitCommitMessage, gitPushBranch, gitPushTag, gitResetHardSync, gitTagAnnotated, gitTagDeleteSync, hasWriteAccess, isGitRepo, isOtpError, isPrerelease, isValidVersion, isWorkingTreeClean, parseGitHubRepo, parseVersion, pingRegistry, publishPackage, registryArg, resolveChangelogRange, resolvePublishTag, runNpm } from "@peiyanlu/cli-utils";
|
|
3
3
|
import { copyDir, createMatcher, createTempDir, editFile, normalizePath, readJsonFile, readJsonFileSync, writeJsonFile } from "@peiyanlu/node-utils";
|
|
4
|
-
import { castArray, dedent, isBoolean, isEmpty, isEmptyObject, isFunction, isNotEmpty, isNumber, isPlainObject, isUndefined, isZero, nonNullable, omit, partition, unset } from "@peiyanlu/ts-utils";
|
|
4
|
+
import { castArray, dedent, isBoolean, isEmpty, isEmptyObject, isFunction, isNotEmpty, isNumber, isPlainObject, isUndefined, isZero, nonNullable, omit, partition, sleep, unset } from "@peiyanlu/ts-utils";
|
|
5
5
|
import { dim, green, red, rgb, underline, yellow } from "ansis";
|
|
6
6
|
import { program } from "commander";
|
|
7
7
|
import { createReadStream, createWriteStream, existsSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -24,7 +24,7 @@ import { glob, globSync } from "tinyglobby";
|
|
|
24
24
|
import { parse } from "yaml";
|
|
25
25
|
//#region package.json
|
|
26
26
|
var name = "@peiyanlu/release";
|
|
27
|
-
var version = "1.
|
|
27
|
+
var version = "1.3.0";
|
|
28
28
|
var description = "Release project tool.";
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/config.ts
|
|
@@ -818,6 +818,7 @@ const createWebRelease = async (options) => {
|
|
|
818
818
|
url.searchParams.set(key, value);
|
|
819
819
|
});
|
|
820
820
|
await open(url.toString());
|
|
821
|
+
await sleep(1e3 * 1.5);
|
|
821
822
|
};
|
|
822
823
|
const isGitHubActions = Boolean(process.env.GITHUB_ACTIONS);
|
|
823
824
|
const githubCheck = async (ctx, config) => {
|