@tinacms/schema-tools 0.0.0-00f6525-20241015065741

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.
@@ -0,0 +1,10 @@
1
+ /**
2
+
3
+ */
4
+ export declare function hasDuplicates<T = any>(array?: T[]): boolean;
5
+ /**
6
+ *
7
+ * @param array
8
+ * @returns False if the array is undefined or has no duplicates.
9
+ */
10
+ export declare function findDuplicates<T = any>(array?: T[] | undefined): undefined | string;
@@ -0,0 +1,9 @@
1
+ /**
2
+
3
+ */
4
+ export * from './validate';
5
+ export * from './lastItem';
6
+ export * from './namer';
7
+ export * from './sequential';
8
+ export * from './hasDuplicates';
9
+ export * from './parseURL';
@@ -0,0 +1,4 @@
1
+ /**
2
+
3
+ */
4
+ export declare const lastItem: (arr: (number | string)[]) => string | number;
@@ -0,0 +1,19 @@
1
+ /**
2
+
3
+ */
4
+ export declare const NAMER: {
5
+ dataFilterTypeNameOn: (namespace: string[]) => string;
6
+ dataFilterTypeName: (namespace: string[]) => string;
7
+ dataMutationTypeNameOn: (namespace: string[]) => string;
8
+ dataMutationTypeName: (namespace: string[]) => string;
9
+ updateName: (namespace: string[]) => string;
10
+ createName: (namespace: string[]) => string;
11
+ queryName: (namespace: string[]) => string;
12
+ generateQueryListName: (namespace: string[]) => string;
13
+ fragmentName: (namespace: string[]) => string;
14
+ collectionTypeName: (namespace: string[]) => string;
15
+ documentTypeName: (namespace: string[]) => string;
16
+ dataTypeName: (namespace: string[]) => string;
17
+ referenceConnectionType: (namespace: string[]) => string;
18
+ referenceConnectionEdgesTypeName: (namespace: string[]) => string;
19
+ };
@@ -0,0 +1 @@
1
+ export declare const normalizePath: (filepath: string) => string;
@@ -0,0 +1,10 @@
1
+ /**
2
+
3
+ */
4
+ export declare const TINA_HOST = "content.tinajs.io";
5
+ export declare const parseURL: (url: string) => {
6
+ branch: string | null;
7
+ isLocalClient: boolean;
8
+ clientId: string | null;
9
+ host: string | null;
10
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+
3
+ */
4
+ import type { ZodError } from 'zod';
5
+ export declare const parseZodError: ({ zodError }: {
6
+ zodError: ZodError;
7
+ }) => string[];
@@ -0,0 +1,14 @@
1
+ /**
2
+
3
+ */
4
+ /**
5
+ * Iterate through an array of promises sequentially, ensuring the order
6
+ * is preserved.
7
+ *
8
+ * ```js
9
+ * await sequential(templates, async (template) => {
10
+ * await doSomething(template)
11
+ * })
12
+ * ```
13
+ */
14
+ export declare const sequential: <A, B>(items: A[] | undefined, callback: (args: A, idx: number) => Promise<B>) => Promise<B[]>;
@@ -0,0 +1,6 @@
1
+ /**
2
+
3
+ */
4
+ import * as yup from 'yup';
5
+ import type { AnySchema } from 'yup';
6
+ export declare function assertShape<T>(value: unknown, yupSchema: (args: typeof yup) => AnySchema, errorMessage?: string): asserts value is T;
@@ -0,0 +1,6 @@
1
+ /**
2
+
3
+ */
4
+ import { z } from 'zod';
5
+ import type { TinaField as TinaFieldType } from '../types/index';
6
+ export declare const TinaFieldZod: z.ZodType<TinaFieldType>;
@@ -0,0 +1,8 @@
1
+ import type { Schema } from '../types/index';
2
+ export { validateTinaCloudSchemaConfig } from './tinaCloudSchemaConfig';
3
+ export declare class TinaSchemaValidationError extends Error {
4
+ constructor(message: string);
5
+ }
6
+ export declare const validateSchema: ({ schema }: {
7
+ schema: Schema;
8
+ }) => void;
@@ -0,0 +1,5 @@
1
+ /**
2
+
3
+ */
4
+ import { z } from 'zod';
5
+ export declare const name: z.ZodEffects<z.ZodString, string, string>;
@@ -0,0 +1,390 @@
1
+ /**
2
+
3
+ */
4
+ import { z } from 'zod';
5
+ export declare const CollectionBaseSchema: z.ZodObject<{
6
+ label: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
8
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
9
+ format: z.ZodOptional<z.ZodEnum<["json", "md", "markdown", "mdx", "toml", "yaml", "yml"]>>;
10
+ isAuthCollection: z.ZodOptional<z.ZodBoolean>;
11
+ isDetached: z.ZodOptional<z.ZodBoolean>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ name?: string;
14
+ label?: string;
15
+ path?: string;
16
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
17
+ isDetached?: boolean;
18
+ isAuthCollection?: boolean;
19
+ }, {
20
+ name?: string;
21
+ label?: string;
22
+ path?: string;
23
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
24
+ isDetached?: boolean;
25
+ isAuthCollection?: boolean;
26
+ }>;
27
+ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
28
+ collections: z.ZodArray<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
29
+ label: z.ZodOptional<z.ZodString>;
30
+ name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
31
+ path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
32
+ format: z.ZodOptional<z.ZodEnum<["json", "md", "markdown", "mdx", "toml", "yaml", "yml"]>>;
33
+ isAuthCollection: z.ZodOptional<z.ZodBoolean>;
34
+ isDetached: z.ZodOptional<z.ZodBoolean>;
35
+ }, {
36
+ fields: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodType<import("..").TinaField, z.ZodTypeDef, import("..").TinaField>, "many">>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>;
37
+ templates: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
38
+ label: z.ZodString;
39
+ name: z.ZodEffects<z.ZodString, string, string>;
40
+ fields: z.ZodArray<z.ZodType<import("..").TinaField, z.ZodTypeDef, import("..").TinaField>, "many">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ name?: string;
43
+ fields?: import("..").TinaField[];
44
+ label?: string;
45
+ }, {
46
+ name?: string;
47
+ fields?: import("..").TinaField[];
48
+ label?: string;
49
+ }>, {
50
+ name?: string;
51
+ fields?: import("..").TinaField[];
52
+ label?: string;
53
+ }, {
54
+ name?: string;
55
+ fields?: import("..").TinaField[];
56
+ label?: string;
57
+ }>, "many">>, {
58
+ name?: string;
59
+ fields?: import("..").TinaField[];
60
+ label?: string;
61
+ }[], {
62
+ name?: string;
63
+ fields?: import("..").TinaField[];
64
+ label?: string;
65
+ }[]>;
66
+ }>, "strip", z.ZodTypeAny, {
67
+ name?: string;
68
+ templates?: {
69
+ name?: string;
70
+ fields?: import("..").TinaField[];
71
+ label?: string;
72
+ }[];
73
+ fields?: import("..").TinaField[];
74
+ label?: string;
75
+ path?: string;
76
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
77
+ isDetached?: boolean;
78
+ isAuthCollection?: boolean;
79
+ }, {
80
+ name?: string;
81
+ templates?: {
82
+ name?: string;
83
+ fields?: import("..").TinaField[];
84
+ label?: string;
85
+ }[];
86
+ fields?: import("..").TinaField[];
87
+ label?: string;
88
+ path?: string;
89
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
90
+ isDetached?: boolean;
91
+ isAuthCollection?: boolean;
92
+ }>, {
93
+ name?: string;
94
+ templates?: {
95
+ name?: string;
96
+ fields?: import("..").TinaField[];
97
+ label?: string;
98
+ }[];
99
+ fields?: import("..").TinaField[];
100
+ label?: string;
101
+ path?: string;
102
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
103
+ isDetached?: boolean;
104
+ isAuthCollection?: boolean;
105
+ }, {
106
+ name?: string;
107
+ templates?: {
108
+ name?: string;
109
+ fields?: import("..").TinaField[];
110
+ label?: string;
111
+ }[];
112
+ fields?: import("..").TinaField[];
113
+ label?: string;
114
+ path?: string;
115
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
116
+ isDetached?: boolean;
117
+ isAuthCollection?: boolean;
118
+ }>, "many">;
119
+ config: z.ZodOptional<z.ZodObject<{
120
+ client: z.ZodOptional<z.ZodObject<{
121
+ referenceDepth: z.ZodOptional<z.ZodNumber>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ referenceDepth?: number;
124
+ }, {
125
+ referenceDepth?: number;
126
+ }>>;
127
+ media: z.ZodOptional<z.ZodObject<{
128
+ tina: z.ZodOptional<z.ZodObject<{
129
+ publicFolder: z.ZodString;
130
+ mediaRoot: z.ZodString;
131
+ static: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
132
+ }, "strict", z.ZodTypeAny, {
133
+ publicFolder?: string;
134
+ mediaRoot?: string;
135
+ static?: boolean;
136
+ }, {
137
+ publicFolder?: string;
138
+ mediaRoot?: string;
139
+ static?: boolean;
140
+ }>>;
141
+ loadCustomStore: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ tina?: {
144
+ publicFolder?: string;
145
+ mediaRoot?: string;
146
+ static?: boolean;
147
+ };
148
+ loadCustomStore?: (...args: unknown[]) => unknown;
149
+ }, {
150
+ tina?: {
151
+ publicFolder?: string;
152
+ mediaRoot?: string;
153
+ static?: boolean;
154
+ };
155
+ loadCustomStore?: (...args: unknown[]) => unknown;
156
+ }>>;
157
+ search: z.ZodOptional<z.ZodObject<{
158
+ tina: z.ZodOptional<z.ZodObject<{
159
+ indexerToken: z.ZodOptional<z.ZodString>;
160
+ stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
161
+ tokenSplitRegex: z.ZodOptional<z.ZodString>;
162
+ }, "strict", z.ZodTypeAny, {
163
+ indexerToken?: string;
164
+ stopwordLanguages?: [string, ...string[]];
165
+ tokenSplitRegex?: string;
166
+ }, {
167
+ indexerToken?: string;
168
+ stopwordLanguages?: [string, ...string[]];
169
+ tokenSplitRegex?: string;
170
+ }>>;
171
+ searchClient: z.ZodOptional<z.ZodAny>;
172
+ indexBatchSize: z.ZodOptional<z.ZodNumber>;
173
+ maxSearchIndexFieldLength: z.ZodOptional<z.ZodNumber>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ maxSearchIndexFieldLength?: number;
176
+ tina?: {
177
+ indexerToken?: string;
178
+ stopwordLanguages?: [string, ...string[]];
179
+ tokenSplitRegex?: string;
180
+ };
181
+ searchClient?: any;
182
+ indexBatchSize?: number;
183
+ }, {
184
+ maxSearchIndexFieldLength?: number;
185
+ tina?: {
186
+ indexerToken?: string;
187
+ stopwordLanguages?: [string, ...string[]];
188
+ tokenSplitRegex?: string;
189
+ };
190
+ searchClient?: any;
191
+ indexBatchSize?: number;
192
+ }>>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ search?: {
195
+ maxSearchIndexFieldLength?: number;
196
+ tina?: {
197
+ indexerToken?: string;
198
+ stopwordLanguages?: [string, ...string[]];
199
+ tokenSplitRegex?: string;
200
+ };
201
+ searchClient?: any;
202
+ indexBatchSize?: number;
203
+ };
204
+ client?: {
205
+ referenceDepth?: number;
206
+ };
207
+ media?: {
208
+ tina?: {
209
+ publicFolder?: string;
210
+ mediaRoot?: string;
211
+ static?: boolean;
212
+ };
213
+ loadCustomStore?: (...args: unknown[]) => unknown;
214
+ };
215
+ }, {
216
+ search?: {
217
+ maxSearchIndexFieldLength?: number;
218
+ tina?: {
219
+ indexerToken?: string;
220
+ stopwordLanguages?: [string, ...string[]];
221
+ tokenSplitRegex?: string;
222
+ };
223
+ searchClient?: any;
224
+ indexBatchSize?: number;
225
+ };
226
+ client?: {
227
+ referenceDepth?: number;
228
+ };
229
+ media?: {
230
+ tina?: {
231
+ publicFolder?: string;
232
+ mediaRoot?: string;
233
+ static?: boolean;
234
+ };
235
+ loadCustomStore?: (...args: unknown[]) => unknown;
236
+ };
237
+ }>>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ collections?: {
240
+ name?: string;
241
+ templates?: {
242
+ name?: string;
243
+ fields?: import("..").TinaField[];
244
+ label?: string;
245
+ }[];
246
+ fields?: import("..").TinaField[];
247
+ label?: string;
248
+ path?: string;
249
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
250
+ isDetached?: boolean;
251
+ isAuthCollection?: boolean;
252
+ }[];
253
+ config?: {
254
+ search?: {
255
+ maxSearchIndexFieldLength?: number;
256
+ tina?: {
257
+ indexerToken?: string;
258
+ stopwordLanguages?: [string, ...string[]];
259
+ tokenSplitRegex?: string;
260
+ };
261
+ searchClient?: any;
262
+ indexBatchSize?: number;
263
+ };
264
+ client?: {
265
+ referenceDepth?: number;
266
+ };
267
+ media?: {
268
+ tina?: {
269
+ publicFolder?: string;
270
+ mediaRoot?: string;
271
+ static?: boolean;
272
+ };
273
+ loadCustomStore?: (...args: unknown[]) => unknown;
274
+ };
275
+ };
276
+ }, {
277
+ collections?: {
278
+ name?: string;
279
+ templates?: {
280
+ name?: string;
281
+ fields?: import("..").TinaField[];
282
+ label?: string;
283
+ }[];
284
+ fields?: import("..").TinaField[];
285
+ label?: string;
286
+ path?: string;
287
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
288
+ isDetached?: boolean;
289
+ isAuthCollection?: boolean;
290
+ }[];
291
+ config?: {
292
+ search?: {
293
+ maxSearchIndexFieldLength?: number;
294
+ tina?: {
295
+ indexerToken?: string;
296
+ stopwordLanguages?: [string, ...string[]];
297
+ tokenSplitRegex?: string;
298
+ };
299
+ searchClient?: any;
300
+ indexBatchSize?: number;
301
+ };
302
+ client?: {
303
+ referenceDepth?: number;
304
+ };
305
+ media?: {
306
+ tina?: {
307
+ publicFolder?: string;
308
+ mediaRoot?: string;
309
+ static?: boolean;
310
+ };
311
+ loadCustomStore?: (...args: unknown[]) => unknown;
312
+ };
313
+ };
314
+ }>, {
315
+ collections?: {
316
+ name?: string;
317
+ templates?: {
318
+ name?: string;
319
+ fields?: import("..").TinaField[];
320
+ label?: string;
321
+ }[];
322
+ fields?: import("..").TinaField[];
323
+ label?: string;
324
+ path?: string;
325
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
326
+ isDetached?: boolean;
327
+ isAuthCollection?: boolean;
328
+ }[];
329
+ config?: {
330
+ search?: {
331
+ maxSearchIndexFieldLength?: number;
332
+ tina?: {
333
+ indexerToken?: string;
334
+ stopwordLanguages?: [string, ...string[]];
335
+ tokenSplitRegex?: string;
336
+ };
337
+ searchClient?: any;
338
+ indexBatchSize?: number;
339
+ };
340
+ client?: {
341
+ referenceDepth?: number;
342
+ };
343
+ media?: {
344
+ tina?: {
345
+ publicFolder?: string;
346
+ mediaRoot?: string;
347
+ static?: boolean;
348
+ };
349
+ loadCustomStore?: (...args: unknown[]) => unknown;
350
+ };
351
+ };
352
+ }, {
353
+ collections?: {
354
+ name?: string;
355
+ templates?: {
356
+ name?: string;
357
+ fields?: import("..").TinaField[];
358
+ label?: string;
359
+ }[];
360
+ fields?: import("..").TinaField[];
361
+ label?: string;
362
+ path?: string;
363
+ format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
364
+ isDetached?: boolean;
365
+ isAuthCollection?: boolean;
366
+ }[];
367
+ config?: {
368
+ search?: {
369
+ maxSearchIndexFieldLength?: number;
370
+ tina?: {
371
+ indexerToken?: string;
372
+ stopwordLanguages?: [string, ...string[]];
373
+ tokenSplitRegex?: string;
374
+ };
375
+ searchClient?: any;
376
+ indexBatchSize?: number;
377
+ };
378
+ client?: {
379
+ referenceDepth?: number;
380
+ };
381
+ media?: {
382
+ tina?: {
383
+ publicFolder?: string;
384
+ mediaRoot?: string;
385
+ static?: boolean;
386
+ };
387
+ loadCustomStore?: (...args: unknown[]) => unknown;
388
+ };
389
+ };
390
+ }>;
@@ -0,0 +1,125 @@
1
+ /**
2
+
3
+ */
4
+ import { Config } from '../types/index';
5
+ import z from 'zod';
6
+ export declare const tinaConfigZod: z.ZodObject<{
7
+ client: z.ZodOptional<z.ZodObject<{
8
+ referenceDepth: z.ZodOptional<z.ZodNumber>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ referenceDepth?: number;
11
+ }, {
12
+ referenceDepth?: number;
13
+ }>>;
14
+ media: z.ZodOptional<z.ZodObject<{
15
+ tina: z.ZodOptional<z.ZodObject<{
16
+ publicFolder: z.ZodString;
17
+ mediaRoot: z.ZodString;
18
+ static: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19
+ }, "strict", z.ZodTypeAny, {
20
+ publicFolder?: string;
21
+ mediaRoot?: string;
22
+ static?: boolean;
23
+ }, {
24
+ publicFolder?: string;
25
+ mediaRoot?: string;
26
+ static?: boolean;
27
+ }>>;
28
+ loadCustomStore: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ tina?: {
31
+ publicFolder?: string;
32
+ mediaRoot?: string;
33
+ static?: boolean;
34
+ };
35
+ loadCustomStore?: (...args: unknown[]) => unknown;
36
+ }, {
37
+ tina?: {
38
+ publicFolder?: string;
39
+ mediaRoot?: string;
40
+ static?: boolean;
41
+ };
42
+ loadCustomStore?: (...args: unknown[]) => unknown;
43
+ }>>;
44
+ search: z.ZodOptional<z.ZodObject<{
45
+ tina: z.ZodOptional<z.ZodObject<{
46
+ indexerToken: z.ZodOptional<z.ZodString>;
47
+ stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
48
+ tokenSplitRegex: z.ZodOptional<z.ZodString>;
49
+ }, "strict", z.ZodTypeAny, {
50
+ indexerToken?: string;
51
+ stopwordLanguages?: [string, ...string[]];
52
+ tokenSplitRegex?: string;
53
+ }, {
54
+ indexerToken?: string;
55
+ stopwordLanguages?: [string, ...string[]];
56
+ tokenSplitRegex?: string;
57
+ }>>;
58
+ searchClient: z.ZodOptional<z.ZodAny>;
59
+ indexBatchSize: z.ZodOptional<z.ZodNumber>;
60
+ maxSearchIndexFieldLength: z.ZodOptional<z.ZodNumber>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ maxSearchIndexFieldLength?: number;
63
+ tina?: {
64
+ indexerToken?: string;
65
+ stopwordLanguages?: [string, ...string[]];
66
+ tokenSplitRegex?: string;
67
+ };
68
+ searchClient?: any;
69
+ indexBatchSize?: number;
70
+ }, {
71
+ maxSearchIndexFieldLength?: number;
72
+ tina?: {
73
+ indexerToken?: string;
74
+ stopwordLanguages?: [string, ...string[]];
75
+ tokenSplitRegex?: string;
76
+ };
77
+ searchClient?: any;
78
+ indexBatchSize?: number;
79
+ }>>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ search?: {
82
+ maxSearchIndexFieldLength?: number;
83
+ tina?: {
84
+ indexerToken?: string;
85
+ stopwordLanguages?: [string, ...string[]];
86
+ tokenSplitRegex?: string;
87
+ };
88
+ searchClient?: any;
89
+ indexBatchSize?: number;
90
+ };
91
+ client?: {
92
+ referenceDepth?: number;
93
+ };
94
+ media?: {
95
+ tina?: {
96
+ publicFolder?: string;
97
+ mediaRoot?: string;
98
+ static?: boolean;
99
+ };
100
+ loadCustomStore?: (...args: unknown[]) => unknown;
101
+ };
102
+ }, {
103
+ search?: {
104
+ maxSearchIndexFieldLength?: number;
105
+ tina?: {
106
+ indexerToken?: string;
107
+ stopwordLanguages?: [string, ...string[]];
108
+ tokenSplitRegex?: string;
109
+ };
110
+ searchClient?: any;
111
+ indexBatchSize?: number;
112
+ };
113
+ client?: {
114
+ referenceDepth?: number;
115
+ };
116
+ media?: {
117
+ tina?: {
118
+ publicFolder?: string;
119
+ mediaRoot?: string;
120
+ static?: boolean;
121
+ };
122
+ loadCustomStore?: (...args: unknown[]) => unknown;
123
+ };
124
+ }>;
125
+ export declare const validateTinaCloudSchemaConfig: (config: unknown) => Config;
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@tinacms/schema-tools",
3
+ "version": "0.0.0-00f6525-20241015065741",
4
+ "main": "dist/index.js",
5
+ "module": "./dist/index.mjs",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.mjs",
10
+ "require": "./dist/index.js"
11
+ }
12
+ },
13
+ "typings": "dist/index.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "license": "Apache-2.0",
18
+ "buildConfig": {
19
+ "entryPoints": [
20
+ {
21
+ "name": "src/index.ts"
22
+ }
23
+ ]
24
+ },
25
+ "devDependencies": {
26
+ "@types/jest": "^29.5.13",
27
+ "@types/micromatch": "^4.0.9",
28
+ "@types/react": "^18.3.10",
29
+ "@types/yup": "^0.29.14",
30
+ "jest": "^29.7.0",
31
+ "react": "^18.3.1",
32
+ "ts-jest": "^29.2.5",
33
+ "typescript": "^5.6.2",
34
+ "yup": "^0.32.11",
35
+ "@tinacms/scripts": "0.0.0-00f6525-20241015065741"
36
+ },
37
+ "peerDependencies": {
38
+ "react": ">=16.14.0",
39
+ "yup": "^0.32.0"
40
+ },
41
+ "publishConfig": {
42
+ "registry": "https://registry.npmjs.org"
43
+ },
44
+ "repository": {
45
+ "url": "https://github.com/tinacms/tinacms.git",
46
+ "directory": "packages/@tinacms/cli"
47
+ },
48
+ "dependencies": {
49
+ "picomatch-browser": "2.2.6",
50
+ "url-pattern": "^1.0.3",
51
+ "zod": "^3.23.8"
52
+ },
53
+ "scripts": {
54
+ "build": "tinacms-scripts build",
55
+ "test": "jest --config jest.config.js",
56
+ "types": "pnpm tsc",
57
+ "test-watch": "jest --passWithNoTests --watch",
58
+ "generate:schema": "pnpm node scripts/generateSchema.js"
59
+ }
60
+ }