@tinacms/cli 1.3.3 → 1.4.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/bin/tinacms +3 -1
- package/dist/cmds/forestry-migrate/util/index.d.ts +14 -14
- package/dist/cmds/init/index.d.ts +4 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2229 -2070
- package/dist/logger/index.d.ts +16 -3
- package/dist/logger/is-unicode-supported.d.ts +1 -0
- package/dist/next/codegen/codegen/index.d.ts +5 -0
- package/dist/{codegen → next/codegen/codegen}/plugin.d.ts +2 -2
- package/dist/{codegen → next/codegen/codegen}/sdkPlugin/index.d.ts +1 -1
- package/dist/next/codegen/index.d.ts +30 -0
- package/dist/{cmds/audit → next/commands/audit-command}/audit.d.ts +7 -5
- package/dist/next/commands/audit-command/index.d.ts +12 -0
- package/dist/next/commands/build-command/index.d.ts +23 -0
- package/dist/next/commands/build-command/server.d.ts +3 -0
- package/dist/next/commands/build-command/tailwind.d.ts +2 -0
- package/dist/next/commands/build-command/waitForDB.d.ts +7 -0
- package/dist/next/commands/codemod-command/index.d.ts +9 -0
- package/dist/next/commands/codemod-command/server/index.d.ts +2 -0
- package/dist/next/commands/dev-command/html.d.ts +1 -0
- package/dist/next/commands/dev-command/index.d.ts +21 -0
- package/dist/next/commands/dev-command/server/index.d.ts +3 -0
- package/dist/next/commands/dev-command/server/media.d.ts +45 -0
- package/dist/next/commands/dev-command/tailwind.d.ts +2 -0
- package/dist/next/commands/init-command/index.d.ts +9 -0
- package/dist/next/config-manager.d.ts +54 -0
- package/dist/next/database.d.ts +4 -0
- package/dist/next/vite/index.d.ts +12 -0
- package/dist/next/vite/tailwind.d.ts +2 -0
- package/dist/utils/sleep.d.ts +4 -0
- package/dist/utils/start-subprocess.d.ts +5 -0
- package/package.json +17 -6
- package/dist/buildTina/attachDatabase.d.ts +0 -8
- package/dist/buildTina/attachPath.d.ts +0 -5
- package/dist/buildTina/git.d.ts +0 -13
- package/dist/buildTina/index.d.ts +0 -71
- package/dist/cmds/audit/index.d.ts +0 -5
- package/dist/cmds/baseCmds.d.ts +0 -11
- package/dist/cmds/compile/defaultSchema.d.ts +0 -4
- package/dist/cmds/compile/index.d.ts +0 -24
- package/dist/cmds/query-gen/genTypes.d.ts +0 -16
- package/dist/cmds/query-gen/index.d.ts +0 -4
- package/dist/cmds/start-server/errors/index.d.ts +0 -10
- package/dist/cmds/start-server/index.d.ts +0 -27
- package/dist/cmds/start-server/lock.d.ts +0 -9
- package/dist/cmds/start-server/server.d.ts +0 -5
- package/dist/cmds/startSubprocess/index.d.ts +0 -8
- package/dist/cmds/statusChecks/checkClientInformation.d.ts +0 -32
- package/dist/cmds/statusChecks/waitForIndexing.d.ts +0 -11
- package/dist/codegen/index.d.ts +0 -8
- package/dist/command.d.ts +0 -19
- package/dist/middleware.d.ts +0 -4
- /package/dist/{codegen → next/codegen/codegen}/sdkPlugin/config.d.ts +0 -0
- /package/dist/{codegen → next/codegen/codegen}/sdkPlugin/visitor.d.ts +0 -0
package/bin/tinacms
CHANGED
|
@@ -7,5 +7,7 @@ if (major < 14 || (major == 14 && minor < 18)) {
|
|
|
7
7
|
'ERROR: Node.js version lower than 14.18 is not supported in tinacms, please update to the latest LTS version. See https://nodejs.org/en/download/ for more details'
|
|
8
8
|
)
|
|
9
9
|
} else {
|
|
10
|
-
require('../dist/index.js')
|
|
10
|
+
const cli = require('../dist/index.js')
|
|
11
|
+
const [node, app, ...args] = process.argv
|
|
12
|
+
cli.default.runExit(args)
|
|
11
13
|
}
|
|
@@ -36,10 +36,10 @@ declare const forestryFieldWithoutField: z.ZodObject<{
|
|
|
36
36
|
section?: string;
|
|
37
37
|
}>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
required?: boolean;
|
|
40
|
-
options?: string[];
|
|
41
39
|
min?: number;
|
|
42
40
|
max?: number;
|
|
41
|
+
options?: string[];
|
|
42
|
+
required?: boolean;
|
|
43
43
|
use_select?: boolean;
|
|
44
44
|
date_format?: string;
|
|
45
45
|
time_format?: string;
|
|
@@ -48,10 +48,10 @@ declare const forestryFieldWithoutField: z.ZodObject<{
|
|
|
48
48
|
section?: string;
|
|
49
49
|
};
|
|
50
50
|
}, {
|
|
51
|
-
required?: boolean;
|
|
52
|
-
options?: string[];
|
|
53
51
|
min?: number;
|
|
54
52
|
max?: number;
|
|
53
|
+
options?: string[];
|
|
54
|
+
required?: boolean;
|
|
55
55
|
use_select?: boolean;
|
|
56
56
|
date_format?: string;
|
|
57
57
|
time_format?: string;
|
|
@@ -62,12 +62,11 @@ declare const forestryFieldWithoutField: z.ZodObject<{
|
|
|
62
62
|
}>>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
default?: any;
|
|
65
|
-
label?: string;
|
|
66
65
|
config?: {
|
|
67
|
-
required?: boolean;
|
|
68
|
-
options?: string[];
|
|
69
66
|
min?: number;
|
|
70
67
|
max?: number;
|
|
68
|
+
options?: string[];
|
|
69
|
+
required?: boolean;
|
|
71
70
|
use_select?: boolean;
|
|
72
71
|
date_format?: string;
|
|
73
72
|
time_format?: string;
|
|
@@ -77,16 +76,16 @@ declare const forestryFieldWithoutField: z.ZodObject<{
|
|
|
77
76
|
};
|
|
78
77
|
};
|
|
79
78
|
name?: string;
|
|
80
|
-
|
|
79
|
+
label?: string;
|
|
80
|
+
type?: "number" | "boolean" | "file" | "text" | "list" | "select" | "datetime" | "image_gallery" | "textarea" | "tag_list" | "field_group" | "field_group_list" | "include" | "blocks" | "color";
|
|
81
81
|
template_types?: string[];
|
|
82
82
|
}, {
|
|
83
83
|
default?: any;
|
|
84
|
-
label?: string;
|
|
85
84
|
config?: {
|
|
86
|
-
required?: boolean;
|
|
87
|
-
options?: string[];
|
|
88
85
|
min?: number;
|
|
89
86
|
max?: number;
|
|
87
|
+
options?: string[];
|
|
88
|
+
required?: boolean;
|
|
90
89
|
use_select?: boolean;
|
|
91
90
|
date_format?: string;
|
|
92
91
|
time_format?: string;
|
|
@@ -96,7 +95,8 @@ declare const forestryFieldWithoutField: z.ZodObject<{
|
|
|
96
95
|
};
|
|
97
96
|
};
|
|
98
97
|
name?: string;
|
|
99
|
-
|
|
98
|
+
label?: string;
|
|
99
|
+
type?: "number" | "boolean" | "file" | "text" | "list" | "select" | "datetime" | "image_gallery" | "textarea" | "tag_list" | "field_group" | "field_group_list" | "include" | "blocks" | "color";
|
|
100
100
|
template_types?: string[];
|
|
101
101
|
}>;
|
|
102
102
|
declare type ForestryFieldWithoutFieldType = z.infer<typeof forestryFieldWithoutField>;
|
|
@@ -152,12 +152,12 @@ export declare const parseSections: ({ val }: {
|
|
|
152
152
|
val: unknown;
|
|
153
153
|
}) => {
|
|
154
154
|
sections?: {
|
|
155
|
+
match?: string;
|
|
155
156
|
label?: string;
|
|
156
157
|
path?: string;
|
|
157
158
|
type?: "directory" | "document" | "heading" | "jekyll-pages" | "jekyll-posts";
|
|
158
|
-
match?: string;
|
|
159
159
|
exclude?: string;
|
|
160
|
-
create?: "
|
|
160
|
+
create?: "none" | "all" | "documents";
|
|
161
161
|
templates?: string[];
|
|
162
162
|
new_doc_ext?: string;
|
|
163
163
|
read_only?: boolean;
|
|
@@ -2,7 +2,10 @@ export interface Framework {
|
|
|
2
2
|
name: 'next' | 'hugo' | 'jekyll' | 'other';
|
|
3
3
|
reactive: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare function initStaticTina(
|
|
5
|
+
export declare function initStaticTina({ rootPath, noTelemetry, }: {
|
|
6
|
+
rootPath: string;
|
|
7
|
+
noTelemetry: boolean;
|
|
8
|
+
}): Promise<void>;
|
|
6
9
|
export interface AddConfigArgs {
|
|
7
10
|
publicFolder: string;
|
|
8
11
|
baseDir: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { Cli } from 'clipanion';
|
|
2
2
|
export type { Schema, TinaSchema, Collection, TinaTemplate, } from '@tinacms/graphql';
|
|
3
|
-
|
|
3
|
+
declare const cli: Cli<import("clipanion").BaseContext>;
|
|
4
|
+
export default cli;
|