@vercel/cli-config
Advanced tools
+2
-1
@@ -9,6 +9,7 @@ /** | ||
| import type { z } from 'zod'; | ||
| import type { AuthConfig, GlobalConfig, GuidanceConfig, TelemetryConfig } from './types'; | ||
| import type { AuthConfig, GlobalConfig, GuidanceConfig, TelemetryConfig, UpdatesConfig } from './types'; | ||
| export declare const telemetryConfigSchema: z.ZodType<TelemetryConfig>; | ||
| export declare const guidanceConfigSchema: z.ZodType<GuidanceConfig>; | ||
| export declare const updatesConfigSchema: z.ZodType<UpdatesConfig>; | ||
| export declare const globalConfigSchema: z.ZodType<GlobalConfig>; | ||
| export declare const authConfigSchema: z.ZodType<AuthConfig>; |
+3
-1
@@ -10,6 +10,7 @@ "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.authConfigSchema = exports.globalConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0; | ||
| exports.authConfigSchema = exports.globalConfigSchema = exports.updatesConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0; | ||
| const schema_zod_1 = require("./schema.zod"); | ||
| exports.telemetryConfigSchema = schema_zod_1.telemetryConfigSchema.passthrough(); | ||
| exports.guidanceConfigSchema = schema_zod_1.guidanceConfigSchema.passthrough(); | ||
| exports.updatesConfigSchema = schema_zod_1.updatesConfigSchema.passthrough(); | ||
| exports.globalConfigSchema = schema_zod_1.globalConfigSchema | ||
@@ -19,4 +20,5 @@ .extend({ | ||
| guidance: exports.guidanceConfigSchema.optional(), | ||
| updates: exports.updatesConfigSchema.optional(), | ||
| }) | ||
| .passthrough(); | ||
| exports.authConfigSchema = schema_zod_1.authConfigSchema.passthrough(); |
@@ -8,2 +8,5 @@ import { z } from 'zod'; | ||
| }, z.core.$strip>; | ||
| export declare const updatesConfigSchema: z.ZodObject<{ | ||
| auto: z.ZodOptional<z.ZodBoolean>; | ||
| }, z.core.$strip>; | ||
| export declare const authConfigSchema: z.ZodObject<{ | ||
@@ -30,2 +33,5 @@ '// Note': z.ZodOptional<z.ZodString>; | ||
| }, z.core.$strip>>; | ||
| updates: z.ZodOptional<z.ZodObject<{ | ||
| auto: z.ZodOptional<z.ZodBoolean>; | ||
| }, z.core.$strip>>; | ||
| }, z.core.$strip>; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.globalConfigSchema = exports.authConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0; | ||
| exports.globalConfigSchema = exports.authConfigSchema = exports.updatesConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0; | ||
| // Generated by ts-to-zod | ||
@@ -12,2 +12,5 @@ const zod_1 = require("zod"); | ||
| }); | ||
| exports.updatesConfigSchema = zod_1.z.object({ | ||
| auto: zod_1.z.boolean().optional(), | ||
| }); | ||
| exports.authConfigSchema = zod_1.z.object({ | ||
@@ -30,2 +33,3 @@ '// Note': zod_1.z.string().optional(), | ||
| guidance: exports.guidanceConfigSchema.optional(), | ||
| updates: exports.updatesConfigSchema.optional(), | ||
| }); |
+4
-0
@@ -13,2 +13,5 @@ /** | ||
| } | ||
| export interface UpdatesConfig { | ||
| auto?: boolean; | ||
| } | ||
| export interface AuthConfig { | ||
@@ -31,2 +34,3 @@ '// Note'?: string; | ||
| guidance?: GuidanceConfig; | ||
| updates?: UpdatesConfig; | ||
| } |
+1
-1
| { | ||
| "name": "@vercel/cli-config", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "Shared core utilities for Vercel global configuration", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
25542
2.92%309
5.82%