@vercel/cli-config 0.1.2 → 0.2.0
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-config.d.ts +8 -1
- package/dist/cli-config.js +55 -2
- package/dist/cred-storage.d.ts +3 -0
- package/dist/cred-storage.js +73 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/schema.d.ts +3 -2
- package/dist/schema.js +14 -1
- package/dist/schema.zod.d.ts +11 -0
- package/dist/schema.zod.js +10 -1
- package/dist/types.d.ts +7 -0
- package/dist/types.js +8 -0
- package/package.json +1 -1
package/dist/cli-config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type { AuthConfig, GlobalConfig } from './types';
|
|
2
|
+
import type { AuthConfig, AuthFileConfig, GlobalConfig } from './types';
|
|
3
3
|
type WriteConfigFileOptions = {
|
|
4
4
|
indent?: number | string;
|
|
5
5
|
mode?: number;
|
|
@@ -9,6 +9,7 @@ export declare function getDefaultAuthConfig(): AuthConfig;
|
|
|
9
9
|
export declare const defaultAuthConfig: AuthConfig;
|
|
10
10
|
export declare function parseGlobalConfig(value: unknown): GlobalConfig;
|
|
11
11
|
export declare function parseAuthConfig(value: unknown): AuthConfig;
|
|
12
|
+
export declare function parseAuthFileConfig(value: unknown): AuthFileConfig;
|
|
12
13
|
export declare function readConfigFile<S extends z.ZodType>(configPath: string, schema: S): z.output<S>;
|
|
13
14
|
export declare function writeConfigFile<S extends z.ZodType>(configPath: string, schema: S, config: z.output<S>, options?: WriteConfigFileOptions): void;
|
|
14
15
|
export declare function getGlobalPathConfig(): string;
|
|
@@ -17,5 +18,11 @@ export declare function getAuthConfigFilePath(configDir: string): string;
|
|
|
17
18
|
export declare function readGlobalConfigFile(configPath: string): GlobalConfig;
|
|
18
19
|
export declare function writeGlobalConfigFile(configPath: string, config: GlobalConfig): void;
|
|
19
20
|
export declare function readAuthConfigFile(configPath: string): AuthConfig;
|
|
21
|
+
export declare function readAuthFileConfig(configPath: string): AuthFileConfig;
|
|
22
|
+
export declare function readAuthConfig(configDir: string): AuthConfig;
|
|
23
|
+
export declare function tryReadAuthConfig(configDir: string): AuthConfig | null;
|
|
20
24
|
export declare function writeAuthConfigFile(configPath: string, authConfig: AuthConfig): void;
|
|
25
|
+
export declare function writeAuthConfig(configDir: string, authConfig: AuthConfig): void;
|
|
26
|
+
export declare function deleteAuthConfigFile(configPath: string): void;
|
|
27
|
+
export declare function deleteAuthConfig(configDir: string): void;
|
|
21
28
|
export {};
|
package/dist/cli-config.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.defaultAuthConfig = exports.defaultGlobalConfig = void 0;
|
|
|
7
7
|
exports.getDefaultAuthConfig = getDefaultAuthConfig;
|
|
8
8
|
exports.parseGlobalConfig = parseGlobalConfig;
|
|
9
9
|
exports.parseAuthConfig = parseAuthConfig;
|
|
10
|
+
exports.parseAuthFileConfig = parseAuthFileConfig;
|
|
10
11
|
exports.readConfigFile = readConfigFile;
|
|
11
12
|
exports.writeConfigFile = writeConfigFile;
|
|
12
13
|
exports.getGlobalPathConfig = getGlobalPathConfig;
|
|
@@ -15,7 +16,13 @@ exports.getAuthConfigFilePath = getAuthConfigFilePath;
|
|
|
15
16
|
exports.readGlobalConfigFile = readGlobalConfigFile;
|
|
16
17
|
exports.writeGlobalConfigFile = writeGlobalConfigFile;
|
|
17
18
|
exports.readAuthConfigFile = readAuthConfigFile;
|
|
19
|
+
exports.readAuthFileConfig = readAuthFileConfig;
|
|
20
|
+
exports.readAuthConfig = readAuthConfig;
|
|
21
|
+
exports.tryReadAuthConfig = tryReadAuthConfig;
|
|
18
22
|
exports.writeAuthConfigFile = writeAuthConfigFile;
|
|
23
|
+
exports.writeAuthConfig = writeAuthConfig;
|
|
24
|
+
exports.deleteAuthConfigFile = deleteAuthConfigFile;
|
|
25
|
+
exports.deleteAuthConfig = deleteAuthConfig;
|
|
19
26
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
20
27
|
const node_path_1 = __importDefault(require("node:path"));
|
|
21
28
|
const node_os_1 = require("node:os");
|
|
@@ -34,12 +41,30 @@ function getDefaultAuthConfig() {
|
|
|
34
41
|
};
|
|
35
42
|
}
|
|
36
43
|
exports.defaultAuthConfig = getDefaultAuthConfig();
|
|
44
|
+
function normalizeConfigError(error) {
|
|
45
|
+
if (error instanceof zod_1.z.ZodError) {
|
|
46
|
+
const credStorageIssue = error.issues.find(issue => issue.path[0] === 'credStorage');
|
|
47
|
+
if (credStorageIssue) {
|
|
48
|
+
throw new Error(credStorageIssue.message);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
37
53
|
function parseGlobalConfig(value) {
|
|
38
|
-
|
|
54
|
+
try {
|
|
55
|
+
return schema_1.globalConfigSchema.parse(value);
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
normalizeConfigError(error);
|
|
59
|
+
}
|
|
39
60
|
}
|
|
40
61
|
function parseAuthConfig(value) {
|
|
41
62
|
return schema_1.authConfigSchema.parse(value);
|
|
42
63
|
}
|
|
64
|
+
function parseAuthFileConfig(value) {
|
|
65
|
+
const { tokenSource, ...authConfig } = parseAuthConfig(value);
|
|
66
|
+
return authConfig;
|
|
67
|
+
}
|
|
43
68
|
function readJsonFileSync(filePath) {
|
|
44
69
|
const content = node_fs_1.default.readFileSync(filePath, 'utf8').replace(/^\uFEFF/, '');
|
|
45
70
|
return JSON.parse(content);
|
|
@@ -102,7 +127,12 @@ function getAuthConfigFilePath(configDir) {
|
|
|
102
127
|
return node_path_1.default.join(configDir, 'auth.json');
|
|
103
128
|
}
|
|
104
129
|
function readGlobalConfigFile(configPath) {
|
|
105
|
-
|
|
130
|
+
try {
|
|
131
|
+
return readConfigFile(configPath, schema_1.globalConfigSchema);
|
|
132
|
+
}
|
|
133
|
+
catch (error) {
|
|
134
|
+
normalizeConfigError(error);
|
|
135
|
+
}
|
|
106
136
|
}
|
|
107
137
|
function writeGlobalConfigFile(configPath, config) {
|
|
108
138
|
writeConfigFile(configPath, schema_1.globalConfigSchema, config);
|
|
@@ -110,6 +140,20 @@ function writeGlobalConfigFile(configPath, config) {
|
|
|
110
140
|
function readAuthConfigFile(configPath) {
|
|
111
141
|
return readConfigFile(configPath, schema_1.authConfigSchema);
|
|
112
142
|
}
|
|
143
|
+
function readAuthFileConfig(configPath) {
|
|
144
|
+
return parseAuthFileConfig(readJsonFileSync(configPath));
|
|
145
|
+
}
|
|
146
|
+
function readAuthConfig(configDir) {
|
|
147
|
+
return readAuthConfigFile(getAuthConfigFilePath(configDir));
|
|
148
|
+
}
|
|
149
|
+
function tryReadAuthConfig(configDir) {
|
|
150
|
+
try {
|
|
151
|
+
return readAuthConfig(configDir);
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
113
157
|
function writeAuthConfigFile(configPath, authConfig) {
|
|
114
158
|
if (authConfig.skipWrite) {
|
|
115
159
|
return;
|
|
@@ -118,3 +162,12 @@ function writeAuthConfigFile(configPath, authConfig) {
|
|
|
118
162
|
mode: 0o600,
|
|
119
163
|
});
|
|
120
164
|
}
|
|
165
|
+
function writeAuthConfig(configDir, authConfig) {
|
|
166
|
+
writeAuthConfigFile(getAuthConfigFilePath(configDir), authConfig);
|
|
167
|
+
}
|
|
168
|
+
function deleteAuthConfigFile(configPath) {
|
|
169
|
+
node_fs_1.default.rmSync(configPath, { force: true });
|
|
170
|
+
}
|
|
171
|
+
function deleteAuthConfig(configDir) {
|
|
172
|
+
deleteAuthConfigFile(getAuthConfigFilePath(configDir));
|
|
173
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.authConfigHasUsableTokenData = authConfigHasUsableTokenData;
|
|
4
|
+
exports.getLikelyEffectiveCredStorage = getLikelyEffectiveCredStorage;
|
|
5
|
+
const types_1 = require("./types");
|
|
6
|
+
const cli_config_1 = require("./cli-config");
|
|
7
|
+
const TOKEN_STORAGE_ENV = 'VERCEL_TOKEN_STORAGE';
|
|
8
|
+
function isErrnoException(error) {
|
|
9
|
+
return typeof error === 'object' && error !== null && 'code' in error;
|
|
10
|
+
}
|
|
11
|
+
function isCredStorage(value) {
|
|
12
|
+
return types_1.CRED_STORAGE_CONFIG_VALUES.includes(value);
|
|
13
|
+
}
|
|
14
|
+
function formatCredStorageError(value, source) {
|
|
15
|
+
return `Invalid value for \`${source}\`: ${JSON.stringify(value)}. Expected one of: ${types_1.CRED_STORAGE_CONFIG_VALUES.map(storage => JSON.stringify(storage)).join(', ')}.`;
|
|
16
|
+
}
|
|
17
|
+
function parseCredStorage(value, source = 'credStorage') {
|
|
18
|
+
if (typeof value === 'undefined') {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (isCredStorage(value)) {
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
throw new Error(formatCredStorageError(value, source));
|
|
25
|
+
}
|
|
26
|
+
function authConfigHasUsableTokenData(value) {
|
|
27
|
+
if (!value || typeof value !== 'object') {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
const authConfig = value;
|
|
31
|
+
return ((typeof authConfig.token === 'string' && authConfig.token.length > 0) ||
|
|
32
|
+
(typeof authConfig.refreshToken === 'string' &&
|
|
33
|
+
authConfig.refreshToken.length > 0));
|
|
34
|
+
}
|
|
35
|
+
function getLikelyAutoCredStorage(configDir) {
|
|
36
|
+
try {
|
|
37
|
+
return authConfigHasUsableTokenData((0, cli_config_1.readAuthConfigFile)((0, cli_config_1.getAuthConfigFilePath)(configDir)))
|
|
38
|
+
? 'file'
|
|
39
|
+
: 'keyring';
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return 'keyring';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function getLikelyConfiguredCredStorage(configDir, credStorage) {
|
|
46
|
+
if (credStorage === 'keyring') {
|
|
47
|
+
return 'keyring';
|
|
48
|
+
}
|
|
49
|
+
if (credStorage !== 'auto') {
|
|
50
|
+
return types_1.DEFAULT_CRED_STORAGE;
|
|
51
|
+
}
|
|
52
|
+
return getLikelyAutoCredStorage(configDir);
|
|
53
|
+
}
|
|
54
|
+
function getLikelyEffectiveCredStorage(configDir) {
|
|
55
|
+
let config = {};
|
|
56
|
+
const credStorageOverride = process.env[TOKEN_STORAGE_ENV];
|
|
57
|
+
if (typeof credStorageOverride !== 'undefined') {
|
|
58
|
+
return getLikelyConfiguredCredStorage(configDir, parseCredStorage(credStorageOverride, TOKEN_STORAGE_ENV));
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
const parsed = (0, cli_config_1.readGlobalConfigFile)((0, cli_config_1.getConfigFilePath)(configDir));
|
|
62
|
+
config = {
|
|
63
|
+
...parsed,
|
|
64
|
+
credStorage: parseCredStorage(parsed.credStorage),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
if (!(isErrnoException(error) && error.code === 'ENOENT')) {
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return getLikelyConfiguredCredStorage(configDir, config.credStorage);
|
|
73
|
+
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/schema.d.ts
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
* Schemas are generated by ts-to-zod and re-exported here with runtime
|
|
6
6
|
* passthrough behavior for unrecognized config keys.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import type { AuthConfig, GlobalConfig, GuidanceConfig, TelemetryConfig, UpdatesConfig } from './types';
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import type { AuthConfig, CredStorage, GlobalConfig, GuidanceConfig, TelemetryConfig, UpdatesConfig } from './types';
|
|
10
10
|
export declare const telemetryConfigSchema: z.ZodType<TelemetryConfig>;
|
|
11
11
|
export declare const guidanceConfigSchema: z.ZodType<GuidanceConfig>;
|
|
12
12
|
export declare const updatesConfigSchema: z.ZodType<UpdatesConfig>;
|
|
13
|
+
export declare const credStorageSchema: z.ZodType<CredStorage | undefined>;
|
|
13
14
|
export declare const globalConfigSchema: z.ZodType<GlobalConfig>;
|
|
14
15
|
export declare const authConfigSchema: z.ZodType<AuthConfig>;
|
package/dist/schema.js
CHANGED
|
@@ -7,13 +7,26 @@
|
|
|
7
7
|
* passthrough behavior for unrecognized config keys.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.authConfigSchema = exports.globalConfigSchema = exports.updatesConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0;
|
|
10
|
+
exports.authConfigSchema = exports.globalConfigSchema = exports.credStorageSchema = exports.updatesConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0;
|
|
11
|
+
const zod_1 = require("zod");
|
|
11
12
|
const schema_zod_1 = require("./schema.zod");
|
|
13
|
+
const types_1 = require("./types");
|
|
14
|
+
function formatCredStorageError(value) {
|
|
15
|
+
return `Invalid value for \`credStorage\`: ${JSON.stringify(value)}. Expected one of: ${types_1.CRED_STORAGE_CONFIG_VALUES.map(storage => JSON.stringify(storage)).join(', ')}.`;
|
|
16
|
+
}
|
|
12
17
|
exports.telemetryConfigSchema = schema_zod_1.telemetryConfigSchema.passthrough();
|
|
13
18
|
exports.guidanceConfigSchema = schema_zod_1.guidanceConfigSchema.passthrough();
|
|
14
19
|
exports.updatesConfigSchema = schema_zod_1.updatesConfigSchema.passthrough();
|
|
20
|
+
exports.credStorageSchema = zod_1.z
|
|
21
|
+
.enum(types_1.CRED_STORAGE_CONFIG_VALUES, {
|
|
22
|
+
error: issue => {
|
|
23
|
+
return formatCredStorageError(issue.input);
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
.optional();
|
|
15
27
|
exports.globalConfigSchema = schema_zod_1.globalConfigSchema
|
|
16
28
|
.extend({
|
|
29
|
+
credStorage: exports.credStorageSchema,
|
|
17
30
|
telemetry: exports.telemetryConfigSchema.optional(),
|
|
18
31
|
guidance: exports.guidanceConfigSchema.optional(),
|
|
19
32
|
updates: exports.updatesConfigSchema.optional(),
|
package/dist/schema.zod.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const guidanceConfigSchema: z.ZodObject<{
|
|
|
8
8
|
export declare const updatesConfigSchema: z.ZodObject<{
|
|
9
9
|
auto: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
|
+
export declare const credStorageSchema: z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"file">, z.ZodLiteral<"keyring">]>;
|
|
11
12
|
export declare const authConfigSchema: z.ZodObject<{
|
|
12
13
|
'// Note': z.ZodOptional<z.ZodString>;
|
|
13
14
|
'// Docs': z.ZodOptional<z.ZodString>;
|
|
@@ -18,9 +19,19 @@ export declare const authConfigSchema: z.ZodObject<{
|
|
|
18
19
|
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
19
20
|
tokenSource: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"flag">, z.ZodLiteral<"env">]>>;
|
|
20
21
|
}, z.core.$strip>;
|
|
22
|
+
export declare const authFileConfigSchema: z.ZodObject<{
|
|
23
|
+
'// Note': z.ZodOptional<z.ZodString>;
|
|
24
|
+
'// Docs': z.ZodOptional<z.ZodString>;
|
|
25
|
+
skipWrite: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
token: z.ZodOptional<z.ZodString>;
|
|
27
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
29
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
21
31
|
export declare const globalConfigSchema: z.ZodObject<{
|
|
22
32
|
'// Note': z.ZodOptional<z.ZodString>;
|
|
23
33
|
'// Docs': z.ZodOptional<z.ZodString>;
|
|
34
|
+
credStorage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"file">, z.ZodLiteral<"keyring">]>>;
|
|
24
35
|
currentTeam: z.ZodOptional<z.ZodString>;
|
|
25
36
|
api: z.ZodOptional<z.ZodString>;
|
|
26
37
|
telemetry: z.ZodOptional<z.ZodObject<{
|
package/dist/schema.zod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.globalConfigSchema = exports.authConfigSchema = exports.updatesConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0;
|
|
3
|
+
exports.globalConfigSchema = exports.authFileConfigSchema = exports.authConfigSchema = exports.credStorageSchema = exports.updatesConfigSchema = exports.guidanceConfigSchema = exports.telemetryConfigSchema = void 0;
|
|
4
4
|
// Generated by ts-to-zod
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.telemetryConfigSchema = zod_1.z.object({
|
|
@@ -12,6 +12,11 @@ exports.guidanceConfigSchema = zod_1.z.object({
|
|
|
12
12
|
exports.updatesConfigSchema = zod_1.z.object({
|
|
13
13
|
auto: zod_1.z.boolean().optional(),
|
|
14
14
|
});
|
|
15
|
+
exports.credStorageSchema = zod_1.z.union([
|
|
16
|
+
zod_1.z.literal('auto'),
|
|
17
|
+
zod_1.z.literal('file'),
|
|
18
|
+
zod_1.z.literal('keyring'),
|
|
19
|
+
]);
|
|
15
20
|
exports.authConfigSchema = zod_1.z.object({
|
|
16
21
|
'// Note': zod_1.z.string().optional(),
|
|
17
22
|
'// Docs': zod_1.z.string().optional(),
|
|
@@ -22,9 +27,13 @@ exports.authConfigSchema = zod_1.z.object({
|
|
|
22
27
|
expiresAt: zod_1.z.number().optional(),
|
|
23
28
|
tokenSource: zod_1.z.union([zod_1.z.literal('flag'), zod_1.z.literal('env')]).optional(),
|
|
24
29
|
});
|
|
30
|
+
exports.authFileConfigSchema = exports.authConfigSchema.omit({
|
|
31
|
+
tokenSource: true,
|
|
32
|
+
});
|
|
25
33
|
exports.globalConfigSchema = zod_1.z.object({
|
|
26
34
|
'// Note': zod_1.z.string().optional(),
|
|
27
35
|
'// Docs': zod_1.z.string().optional(),
|
|
36
|
+
credStorage: exports.credStorageSchema.optional(),
|
|
28
37
|
currentTeam: zod_1.z.string().optional(),
|
|
29
38
|
api: zod_1.z.string().optional(),
|
|
30
39
|
telemetry: exports.telemetryConfigSchema.optional(),
|
package/dist/types.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export interface GuidanceConfig {
|
|
|
13
13
|
export interface UpdatesConfig {
|
|
14
14
|
auto?: boolean;
|
|
15
15
|
}
|
|
16
|
+
export type CredStorage = 'auto' | 'file' | 'keyring';
|
|
17
|
+
export type CredentialsStorageLocation = Exclude<CredStorage, 'auto'>;
|
|
18
|
+
export declare const CRED_STORAGE_CONFIG_VALUES: readonly ["auto", "file", "keyring"];
|
|
19
|
+
export declare const CRED_STORAGE_VALUES: ("file" | "keyring")[];
|
|
20
|
+
export declare const DEFAULT_CRED_STORAGE: CredentialsStorageLocation;
|
|
16
21
|
export interface AuthConfig {
|
|
17
22
|
'// Note'?: string;
|
|
18
23
|
'// Docs'?: string;
|
|
@@ -23,9 +28,11 @@ export interface AuthConfig {
|
|
|
23
28
|
expiresAt?: number;
|
|
24
29
|
tokenSource?: 'flag' | 'env';
|
|
25
30
|
}
|
|
31
|
+
export type AuthFileConfig = Omit<AuthConfig, 'tokenSource'>;
|
|
26
32
|
export interface GlobalConfig {
|
|
27
33
|
'// Note'?: string;
|
|
28
34
|
'// Docs'?: string;
|
|
35
|
+
credStorage?: CredStorage;
|
|
29
36
|
currentTeam?: string;
|
|
30
37
|
api?: string;
|
|
31
38
|
telemetry?: TelemetryConfig;
|
package/dist/types.js
CHANGED
|
@@ -6,3 +6,11 @@
|
|
|
6
6
|
* Zod schemas are generated from these using ts-to-zod.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.DEFAULT_CRED_STORAGE = exports.CRED_STORAGE_VALUES = exports.CRED_STORAGE_CONFIG_VALUES = void 0;
|
|
10
|
+
exports.CRED_STORAGE_CONFIG_VALUES = [
|
|
11
|
+
'auto',
|
|
12
|
+
'file',
|
|
13
|
+
'keyring',
|
|
14
|
+
];
|
|
15
|
+
exports.CRED_STORAGE_VALUES = exports.CRED_STORAGE_CONFIG_VALUES.filter((storage) => storage !== 'auto');
|
|
16
|
+
exports.DEFAULT_CRED_STORAGE = 'file';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/cli-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Shared core utilities for Vercel global configuration",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs/projects/project-configuration/global-configuration",
|