@apitree.cz/cli 0.5.1 → 0.5.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.
@@ -1,36 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  export declare const configSchema: z.ZodObject<{
3
3
  hooks: z.ZodOptional<z.ZodObject<{
4
- afterSync: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5
- }, "strip", z.ZodTypeAny, {
6
- afterSync?: string[] | undefined;
7
- }, {
8
- afterSync?: string[] | undefined;
9
- }>>;
4
+ afterSync: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
+ }, z.core.$strip>>;
10
6
  tsConfigs: z.ZodOptional<z.ZodObject<{
11
7
  build: z.ZodOptional<z.ZodString>;
12
8
  default: z.ZodOptional<z.ZodString>;
13
- }, "strip", z.ZodTypeAny, {
14
- build?: string | undefined;
15
- default?: string | undefined;
16
- }, {
17
- build?: string | undefined;
18
- default?: string | undefined;
19
- }>>;
20
- }, "strict", z.ZodTypeAny, {
21
- hooks?: {
22
- afterSync?: string[] | undefined;
23
- } | undefined;
24
- tsConfigs?: {
25
- build?: string | undefined;
26
- default?: string | undefined;
27
- } | undefined;
28
- }, {
29
- hooks?: {
30
- afterSync?: string[] | undefined;
31
- } | undefined;
32
- tsConfigs?: {
33
- build?: string | undefined;
34
- default?: string | undefined;
35
- } | undefined;
36
- }>;
9
+ }, z.core.$strip>>;
10
+ }, z.core.$strict>;
@@ -24,7 +24,7 @@ const validate = async (config, path) => {
24
24
  }
25
25
  catch (error) {
26
26
  if (error instanceof ZodError) {
27
- throw new TypeError(`Config '${path}' is invalid:\n${error.errors
27
+ throw new TypeError(`Config '${path}' is invalid:\n${error.issues
28
28
  .map((error) => `- ${error.path.join('.')}: ${error.message}`)
29
29
  .join('\n')}`);
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apitree.cz/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Command line interface for ApiTree projects.",
5
5
  "keywords": [
6
6
  "apitree",
@@ -31,7 +31,7 @@
31
31
  "execa": "^9.6.1",
32
32
  "path-exists": "^5.0.0",
33
33
  "ts-toolbelt": "^9.6.0",
34
- "zod": "^3.25.76",
34
+ "zod": "^4.0.0",
35
35
  "@apitree.cz/ts-utils": "0.2.5"
36
36
  },
37
37
  "devDependencies": {