@ucdjs/release-scripts 0.1.0-beta.8 → 0.1.0-beta.9
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.mjs +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -56,15 +56,15 @@ function exitWithError(message, hint) {
|
|
|
56
56
|
process.exit(1);
|
|
57
57
|
}
|
|
58
58
|
function normalizeSharedOptions(options) {
|
|
59
|
-
const { workspaceRoot = process.cwd(), githubToken = "", verbose = false, repo, packages = true, prompts: prompts$1 = {
|
|
59
|
+
const { workspaceRoot = process.cwd(), githubToken = "", verbose = false, repo: fullRepo, packages = true, prompts: prompts$1 = {
|
|
60
60
|
packages: true,
|
|
61
61
|
versions: true
|
|
62
62
|
},...rest } = options;
|
|
63
63
|
globalOptions.verbose = verbose;
|
|
64
64
|
if (!githubToken.trim()) exitWithError("GitHub token is required", "Set GITHUB_TOKEN environment variable or pass it in options");
|
|
65
|
-
if (!
|
|
66
|
-
const [owner,
|
|
67
|
-
if (!owner || !
|
|
65
|
+
if (!fullRepo || !fullRepo.trim() || !fullRepo.includes("/")) exitWithError("Repository (repo) is required", "Specify the repository in 'owner/repo' format (e.g., 'octocat/hello-world')");
|
|
66
|
+
const [owner, repo] = fullRepo.split("/");
|
|
67
|
+
if (!owner || !repo) exitWithError(`Invalid repo format: "${fullRepo}"`, "Expected format: \"owner/repo\" (e.g., \"octocat/hello-world\")");
|
|
68
68
|
return {
|
|
69
69
|
...rest,
|
|
70
70
|
packages,
|