@tallyrelease/cli 0.0.0 → 0.1.0-beta.2

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.
@@ -2,5 +2,9 @@
2
2
  export const check = async (session) => {
3
3
  const workspace = await session.workspace();
4
4
  session.warn(workspace.warnings);
5
- session.stdout.write(`ok: ${String(workspace.units.length)} units, ${String(workspace.graph.edges.length)} edges\n`);
5
+ const released = workspace.units
6
+ .filter((u) => u.version !== "none")
7
+ .map((u) => u.id);
8
+ const list = released.length > 0 ? `: ${released.join(", ")}` : "";
9
+ session.stdout.write(`ok: ${String(workspace.units.length)} units (${String(released.length)} released${list}), ${String(workspace.graph.edges.length)} edges\n`);
6
10
  };
@@ -19,7 +19,7 @@ export const graph = async (session, flags) => {
19
19
  return;
20
20
  }
21
21
  for (const u of units) {
22
- session.stdout.write(`${u.id}\t${u.path}\t${u.plugin}\n`);
22
+ session.stdout.write(`${u.id}\t${u.path}\t${u.plugin}\t${u.version}\n`);
23
23
  }
24
24
  for (const e of edges) {
25
25
  session.stdout.write(`${e.from} -> ${e.to}${e.pinned ? " (pinned)" : ""}\n`);
@@ -3,6 +3,7 @@ import { z } from "zod";
3
3
  export declare const configSchema: z.ZodObject<{
4
4
  plugins: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
5
5
  defaults: z.ZodExactOptional<z.ZodObject<{
6
+ release: z.ZodExactOptional<z.ZodBoolean>;
6
7
  tagFormat: z.ZodExactOptional<z.ZodString>;
7
8
  propagate: z.ZodExactOptional<z.ZodEnum<{
8
9
  auto: "auto";
@@ -14,9 +15,9 @@ export declare const configSchema: z.ZodObject<{
14
15
  id: z.ZodExactOptional<z.ZodString>;
15
16
  include: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
16
17
  exclude: z.ZodExactOptional<z.ZodArray<z.ZodString>>;
18
+ release: z.ZodExactOptional<z.ZodBoolean>;
17
19
  version: z.ZodExactOptional<z.ZodEnum<{
18
20
  file: "file";
19
- none: "none";
20
21
  tag: "tag";
21
22
  }>>;
22
23
  scheme: z.ZodExactOptional<z.ZodString>;
@@ -5,7 +5,14 @@ const unitOverlay = z.strictObject({
5
5
  id: z.string().exactOptional(),
6
6
  include: globs,
7
7
  exclude: globs,
8
- version: z.enum(["file", "tag", "none"]).exactOptional(),
8
+ release: z.boolean().exactOptional(),
9
+ version: z
10
+ .enum(["file", "tag"], {
11
+ error: (issue) => issue.input === "none"
12
+ ? 'version "none" is not supported, use release: false'
13
+ : undefined,
14
+ })
15
+ .exactOptional(),
9
16
  scheme: z.string().exactOptional(),
10
17
  tagFormat: z.string().exactOptional(),
11
18
  propagate: propagate.exactOptional(),
@@ -17,6 +24,7 @@ export const configSchema = z.strictObject({
17
24
  .default({}),
18
25
  defaults: z
19
26
  .strictObject({
27
+ release: z.boolean().exactOptional(),
20
28
  tagFormat: z.string().exactOptional(),
21
29
  propagate: propagate.exactOptional(),
22
30
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tallyrelease/cli",
3
- "version": "0.0.0",
3
+ "version": "0.1.0-beta.2",
4
4
  "description": "Command line interface of tallyrelease",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "prettier": "@abinnovision/prettier-config",
48
48
  "dependencies": {
49
49
  "@octokit/rest": "^22.0.1",
50
- "@tallyrelease/core": "^0.0.0",
50
+ "@tallyrelease/core": "^0.1.0-beta.2",
51
51
  "commander": "^15.0.0",
52
52
  "tinyglobby": "^0.2.17",
53
53
  "yaml": "^2.9.1",
@@ -80,4 +80,4 @@
80
80
  },
81
81
  "npm": true
82
82
  }
83
- }
83
+ }