@tinacms/cli 1.4.1 → 1.5.1
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/cmds/forestry-migrate/index.d.ts +4 -8
- package/dist/cmds/forestry-migrate/util/errorSingleton.d.ts +2 -2
- package/dist/cmds/forestry-migrate/util/index.d.ts +9 -12
- package/dist/cmds/init/index.d.ts +3 -1
- package/dist/index.js +701 -588
- package/dist/next/codegen/index.d.ts +1 -3
- package/dist/next/commands/audit-command/audit.d.ts +1 -9
- package/dist/next/commands/build-command/server.d.ts +1 -1
- package/dist/next/commands/codemod-command/index.d.ts +1 -0
- package/dist/next/commands/dev-command/server/index.d.ts +1 -1
- package/dist/next/commands/init-command/index.d.ts +1 -0
- package/dist/next/config-manager.d.ts +7 -1
- package/dist/next/database.d.ts +1 -1
- package/dist/next/vite/index.d.ts +1 -2
- package/dist/next/vite/plugins.d.ts +11 -0
- package/package.json +7 -6
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
1
|
import type { Collection, TinaField } from '@tinacms/schema-tools';
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
2
|
+
export declare const generateAllTemplates: ({ pathToForestryConfig, }: {
|
|
3
|
+
pathToForestryConfig: string;
|
|
7
4
|
}) => Promise<Map<string, {
|
|
8
5
|
fields: TinaField[];
|
|
9
6
|
templateObj: any;
|
|
10
7
|
}>>;
|
|
11
|
-
export declare const generateCollections: ({
|
|
12
|
-
|
|
13
|
-
rootPath: string;
|
|
8
|
+
export declare const generateCollections: ({ pathToForestryConfig, }: {
|
|
9
|
+
pathToForestryConfig: string;
|
|
14
10
|
}) => Promise<Collection<false>[]>;
|
|
@@ -24,8 +24,8 @@ export declare class ErrorSingleton {
|
|
|
24
24
|
* just one instance of each subclass around.
|
|
25
25
|
*/
|
|
26
26
|
static getInstance(): ErrorSingleton;
|
|
27
|
-
private
|
|
27
|
+
private collectionNameErrors;
|
|
28
28
|
addErrorName(error: NameError): void;
|
|
29
|
-
|
|
29
|
+
printCollectionNameErrors(): void;
|
|
30
30
|
}
|
|
31
31
|
export {};
|
|
@@ -76,8 +76,8 @@ declare const forestryFieldWithoutField: z.ZodObject<{
|
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
name?: string;
|
|
79
|
-
label?: string;
|
|
80
79
|
type?: "number" | "boolean" | "file" | "text" | "list" | "select" | "datetime" | "image_gallery" | "textarea" | "tag_list" | "field_group" | "field_group_list" | "include" | "blocks" | "color";
|
|
80
|
+
label?: string;
|
|
81
81
|
template_types?: string[];
|
|
82
82
|
}, {
|
|
83
83
|
default?: any;
|
|
@@ -95,8 +95,8 @@ declare const forestryFieldWithoutField: z.ZodObject<{
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
name?: string;
|
|
98
|
-
label?: string;
|
|
99
98
|
type?: "number" | "boolean" | "file" | "text" | "list" | "select" | "datetime" | "image_gallery" | "textarea" | "tag_list" | "field_group" | "field_group_list" | "include" | "blocks" | "color";
|
|
99
|
+
label?: string;
|
|
100
100
|
template_types?: string[];
|
|
101
101
|
}>;
|
|
102
102
|
declare type ForestryFieldWithoutFieldType = z.infer<typeof forestryFieldWithoutField>;
|
|
@@ -116,15 +116,15 @@ declare const FrontmatterTemplateSchema: z.ZodObject<{
|
|
|
116
116
|
fields?: ForestryFieldType[];
|
|
117
117
|
hide_body?: boolean;
|
|
118
118
|
}>;
|
|
119
|
-
export declare const transformForestryFieldsToTinaFields: ({ fields,
|
|
119
|
+
export declare const transformForestryFieldsToTinaFields: ({ fields, pathToForestryConfig, template, skipBlocks, }: {
|
|
120
120
|
fields: z.infer<typeof FrontmatterTemplateSchema>['fields'];
|
|
121
|
-
|
|
121
|
+
pathToForestryConfig: string;
|
|
122
122
|
template: string;
|
|
123
123
|
skipBlocks?: boolean;
|
|
124
124
|
}) => TinaField<false>[];
|
|
125
125
|
export declare const getFieldsFromTemplates: (_args: {
|
|
126
126
|
tem: string;
|
|
127
|
-
|
|
127
|
+
pathToForestryConfig: string;
|
|
128
128
|
skipBlocks?: boolean;
|
|
129
129
|
}) => {
|
|
130
130
|
fields: TinaField[];
|
|
@@ -142,20 +142,17 @@ export declare const parseTemplates: ({ val }: {
|
|
|
142
142
|
fields?: ForestryFieldType[];
|
|
143
143
|
hide_body?: boolean;
|
|
144
144
|
};
|
|
145
|
-
export declare const
|
|
146
|
-
|
|
147
|
-
}) => Promise<
|
|
148
|
-
path: string;
|
|
149
|
-
exists: boolean;
|
|
150
|
-
}>;
|
|
145
|
+
export declare const checkForestrySettingsPath: ({ forestryPath, }: {
|
|
146
|
+
forestryPath: string;
|
|
147
|
+
}) => Promise<string | undefined>;
|
|
151
148
|
export declare const parseSections: ({ val }: {
|
|
152
149
|
val: unknown;
|
|
153
150
|
}) => {
|
|
154
151
|
sections?: {
|
|
155
152
|
match?: string;
|
|
156
|
-
label?: string;
|
|
157
153
|
path?: string;
|
|
158
154
|
type?: "directory" | "document" | "heading" | "jekyll-pages" | "jekyll-posts";
|
|
155
|
+
label?: string;
|
|
159
156
|
exclude?: string;
|
|
160
157
|
create?: "none" | "all" | "documents";
|
|
161
158
|
templates?: string[];
|
|
@@ -2,8 +2,9 @@ export interface Framework {
|
|
|
2
2
|
name: 'next' | 'hugo' | 'jekyll' | 'other';
|
|
3
3
|
reactive: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare function initStaticTina({ rootPath, noTelemetry, }: {
|
|
5
|
+
export declare function initStaticTina({ rootPath, pathToForestryConfig, noTelemetry, }: {
|
|
6
6
|
rootPath: string;
|
|
7
|
+
pathToForestryConfig: string;
|
|
7
8
|
noTelemetry: boolean;
|
|
8
9
|
}): Promise<void>;
|
|
9
10
|
export interface AddConfigArgs {
|
|
@@ -14,6 +15,7 @@ export interface AddConfigArgs {
|
|
|
14
15
|
collections?: string;
|
|
15
16
|
token?: string;
|
|
16
17
|
clientId?: string;
|
|
18
|
+
isForestryMigration?: boolean;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* Executes a shell command and return it as a Promise.
|