@tinacms/cli 0.0.0-bef6c5d-20250131012808 → 0.0.0-bf8b9b7-20251204000148
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/README.md +6 -6
- package/bin/tinacms +12 -6
- package/dist/cmds/forestry-migrate/index.d.ts +2 -2
- package/dist/cmds/forestry-migrate/util/index.d.ts +17 -17
- package/dist/cmds/init/index.d.ts +2 -2
- package/dist/cmds/init/prompts/authProvider.d.ts +1 -1
- package/dist/cmds/init/prompts/index.d.ts +3 -2
- package/dist/cmds/init/prompts/types.d.ts +3 -2
- package/dist/index.js +3006 -2884
- package/dist/next/codegen/index.d.ts +3 -9
- package/dist/next/commands/build-command/index.d.ts +4 -1
- package/dist/next/commands/dev-command/index.d.ts +6 -3
- package/dist/next/commands/dev-command/server/index.d.ts +1 -1
- package/dist/next/vite/plugins.d.ts +2 -1
- package/dist/utils/path.d.ts +3 -0
- package/dist/utils/sleep.d.ts +1 -0
- package/package.json +28 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GraphQLSchema, DocumentNode } from 'graphql';
|
|
2
2
|
import { ConfigManager } from '../config-manager';
|
|
3
3
|
import type { TinaSchema } from '@tinacms/schema-tools';
|
|
4
4
|
export declare const TINA_HOST = "content.tinajs.io";
|
|
@@ -12,10 +12,7 @@ export declare class Codegen {
|
|
|
12
12
|
apiURL: string;
|
|
13
13
|
localUrl: string;
|
|
14
14
|
productionUrl: string;
|
|
15
|
-
graphqlSchemaDoc:
|
|
16
|
-
kind: 'Document';
|
|
17
|
-
definitions: TypeDefinitionNode[];
|
|
18
|
-
};
|
|
15
|
+
graphqlSchemaDoc: DocumentNode;
|
|
19
16
|
tinaSchema: TinaSchema;
|
|
20
17
|
lookup: any;
|
|
21
18
|
noClientBuildCache: boolean;
|
|
@@ -25,10 +22,7 @@ export declare class Codegen {
|
|
|
25
22
|
queryDoc: string;
|
|
26
23
|
fragDoc: string;
|
|
27
24
|
isLocal: boolean;
|
|
28
|
-
graphqlSchemaDoc:
|
|
29
|
-
kind: 'Document';
|
|
30
|
-
definitions: TypeDefinitionNode[];
|
|
31
|
-
};
|
|
25
|
+
graphqlSchemaDoc: DocumentNode;
|
|
32
26
|
tinaSchema: TinaSchema;
|
|
33
27
|
lookup: any;
|
|
34
28
|
noClientBuildCache: boolean;
|
|
@@ -8,7 +8,7 @@ export declare class BuildCommand extends BaseCommand {
|
|
|
8
8
|
partialReindex: boolean;
|
|
9
9
|
tinaGraphQLVersion: string;
|
|
10
10
|
/**
|
|
11
|
-
* This option allows the user to skip the
|
|
11
|
+
* This option allows the user to skip the TinaCloud checks if they want to. This could be useful for mismatched GraphQL versions or if they want to build only using the local client and never connect to TinaCloud
|
|
12
12
|
*/
|
|
13
13
|
skipCloudChecks: boolean;
|
|
14
14
|
skipSearchIndex: boolean;
|
|
@@ -20,8 +20,11 @@ export declare class BuildCommand extends BaseCommand {
|
|
|
20
20
|
catch(error: any): Promise<void>;
|
|
21
21
|
execute(): Promise<number | void>;
|
|
22
22
|
checkClientInfo(configManager: ConfigManager, apiURL: string, previewBaseBranch?: string): Promise<{
|
|
23
|
+
branchKnown: boolean;
|
|
23
24
|
hasUpstream: boolean;
|
|
24
25
|
timestamp: number;
|
|
26
|
+
detectedBotBranch: boolean;
|
|
27
|
+
defaultBranch: string | undefined;
|
|
25
28
|
}>;
|
|
26
29
|
syncProject(configManager: ConfigManager, apiURL: string, options?: {
|
|
27
30
|
upstreamBranch?: string;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { Database } from '@tinacms/graphql';
|
|
2
|
+
import { SearchIndexer } from '@tinacms/search';
|
|
3
|
+
import AsyncLock from 'async-lock';
|
|
2
4
|
import { ConfigManager } from '../../config-manager';
|
|
3
5
|
import { BaseCommand } from '../baseCommands';
|
|
4
|
-
import { SearchIndexer } from '@tinacms/search';
|
|
5
6
|
export declare class DevCommand extends BaseCommand {
|
|
6
7
|
static paths: string[][];
|
|
7
8
|
watchFolders: string;
|
|
8
9
|
noWatch: boolean;
|
|
9
10
|
outputSearchIndexPath: string;
|
|
11
|
+
noServer: boolean;
|
|
12
|
+
indexingLock: AsyncLock;
|
|
10
13
|
static usage: import("clipanion").Usage;
|
|
11
14
|
catch(error: any): Promise<void>;
|
|
12
15
|
logDeprecationWarnings(): void;
|
|
13
16
|
execute(): Promise<number | void>;
|
|
14
|
-
watchContentFiles(configManager: ConfigManager, database: Database, searchIndexer?: SearchIndexer): void;
|
|
15
|
-
watchQueries(configManager: ConfigManager, callback: () => Promise<string>): void;
|
|
17
|
+
watchContentFiles(configManager: ConfigManager, database: Database, databaseLock: (fn: () => Promise<void>) => Promise<void>, searchIndexer?: SearchIndexer): void;
|
|
18
|
+
watchQueries(configManager: ConfigManager, databaseLock: (fn: () => Promise<void>) => Promise<void>, callback: () => Promise<string>): void;
|
|
16
19
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Database } from '@tinacms/graphql';
|
|
2
2
|
import { ConfigManager } from '../../../config-manager';
|
|
3
|
-
export declare const createDevServer: (configManager: ConfigManager, database: Database, searchIndex: any, apiURL: string, noWatch: boolean) => Promise<import("vite").ViteDevServer>;
|
|
3
|
+
export declare const createDevServer: (configManager: ConfigManager, database: Database, searchIndex: any, apiURL: string, noWatch: boolean, databaseLock: (fn: () => Promise<void>) => Promise<void>) => Promise<import("vite").ViteDevServer>;
|
|
@@ -7,11 +7,12 @@ import type { ConfigManager } from '../config-manager';
|
|
|
7
7
|
export declare const transformTsxPlugin: ({ configManager: _configManager, }: {
|
|
8
8
|
configManager: ConfigManager;
|
|
9
9
|
}) => Plugin;
|
|
10
|
-
export declare const devServerEndPointsPlugin: ({ configManager, apiURL, database, searchIndex, }: {
|
|
10
|
+
export declare const devServerEndPointsPlugin: ({ configManager, apiURL, database, searchIndex, databaseLock, }: {
|
|
11
11
|
apiURL: string;
|
|
12
12
|
database: Database;
|
|
13
13
|
configManager: ConfigManager;
|
|
14
14
|
searchIndex: any;
|
|
15
|
+
databaseLock: (fn: () => Promise<void>) => Promise<void>;
|
|
15
16
|
}) => Plugin;
|
|
16
17
|
export interface ViteSvgrOptions {
|
|
17
18
|
/**
|
package/dist/utils/sleep.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0-bf8b9b7-20251204000148",
|
|
4
5
|
"main": "dist/index.js",
|
|
5
6
|
"typings": "dist/index.d.ts",
|
|
6
7
|
"files": [
|
|
@@ -20,6 +21,10 @@
|
|
|
20
21
|
}
|
|
21
22
|
]
|
|
22
23
|
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": ">=18.3.1 <20.0.0",
|
|
26
|
+
"react-dom": ">=18.3.1 <20.0.0"
|
|
27
|
+
},
|
|
23
28
|
"devDependencies": {
|
|
24
29
|
"@types/clear": "0.1.0",
|
|
25
30
|
"@types/cli-spinner": "^0.2.3",
|
|
@@ -33,28 +38,29 @@
|
|
|
33
38
|
"@types/listr": "0.14.2",
|
|
34
39
|
"@types/log4js": "^2.3.5",
|
|
35
40
|
"@types/multer": "^1.4.12",
|
|
41
|
+
"@types/node": "^22.13.1",
|
|
36
42
|
"@types/progress": "^2.0.7",
|
|
37
43
|
"@types/prompts": "^2.4.9",
|
|
38
|
-
"@types/yup": "^0.32.0",
|
|
39
44
|
"jest": "^29.7.0",
|
|
40
|
-
"@tinacms/scripts": "1.
|
|
45
|
+
"@tinacms/scripts": "1.4.1"
|
|
41
46
|
},
|
|
42
47
|
"dependencies": {
|
|
43
48
|
"@graphql-codegen/core": "^2.6.8",
|
|
44
49
|
"@graphql-codegen/plugin-helpers": "latest",
|
|
45
|
-
"@graphql-codegen/typescript": "^4.1.
|
|
46
|
-
"@graphql-codegen/typescript-operations": "^4.
|
|
50
|
+
"@graphql-codegen/typescript": "^4.1.3",
|
|
51
|
+
"@graphql-codegen/typescript-operations": "^4.4.1",
|
|
47
52
|
"@graphql-codegen/visitor-plugin-common": "^4.1.2",
|
|
48
53
|
"@graphql-inspector/core": "^4.2.2",
|
|
49
54
|
"@graphql-tools/graphql-file-loader": "^7.5.17",
|
|
50
55
|
"@graphql-tools/load": "^7.8.14",
|
|
51
|
-
"@rollup/pluginutils": "^5.1.
|
|
56
|
+
"@rollup/pluginutils": "^5.1.4",
|
|
52
57
|
"@svgr/core": "8.1.0",
|
|
53
58
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
54
59
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
55
|
-
"@tailwindcss/typography": "^0.5.
|
|
60
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
56
61
|
"@vitejs/plugin-react": "3.1.0",
|
|
57
62
|
"altair-express-middleware": "^7.3.6",
|
|
63
|
+
"async-lock": "^1.4.1",
|
|
58
64
|
"auto-bind": "^4.0.0",
|
|
59
65
|
"body-parser": "^1.20.3",
|
|
60
66
|
"busboy": "^1.6.0",
|
|
@@ -64,9 +70,9 @@
|
|
|
64
70
|
"clipanion": "^3.2.1",
|
|
65
71
|
"cors": "^2.8.5",
|
|
66
72
|
"crypto-js": "^4.2.0",
|
|
67
|
-
"dotenv": "^16.4.
|
|
68
|
-
"esbuild": "^0.24.
|
|
69
|
-
"fs-extra": "^11.
|
|
73
|
+
"dotenv": "^16.4.7",
|
|
74
|
+
"esbuild": "^0.24.2",
|
|
75
|
+
"fs-extra": "^11.3.0",
|
|
70
76
|
"graphql": "15.8.0",
|
|
71
77
|
"js-yaml": "^4.1.0",
|
|
72
78
|
"log4js": "^6.9.1",
|
|
@@ -77,19 +83,19 @@
|
|
|
77
83
|
"prettier": "^2.8.8",
|
|
78
84
|
"progress": "^2.0.3",
|
|
79
85
|
"prompts": "^2.4.2",
|
|
80
|
-
"readable-stream": "^4.
|
|
81
|
-
"tailwindcss": "^3.4.
|
|
86
|
+
"readable-stream": "^4.7.0",
|
|
87
|
+
"tailwindcss": "^3.4.17",
|
|
82
88
|
"typanion": "3.13.0",
|
|
83
|
-
"typescript": "^5.
|
|
84
|
-
"vite": "^4.5.
|
|
85
|
-
"yup": "^1.
|
|
86
|
-
"zod": "^3.
|
|
87
|
-
"@tinacms/
|
|
88
|
-
"@tinacms/
|
|
89
|
-
"@tinacms/
|
|
90
|
-
"@tinacms/
|
|
91
|
-
"@tinacms/search": "
|
|
92
|
-
"tinacms": "0.0.0-
|
|
89
|
+
"typescript": "^5.7.3",
|
|
90
|
+
"vite": "^4.5.9",
|
|
91
|
+
"yup": "^1.6.1",
|
|
92
|
+
"zod": "^3.24.2",
|
|
93
|
+
"@tinacms/graphql": "0.0.0-bf8b9b7-20251204000148",
|
|
94
|
+
"@tinacms/app": "0.0.0-bf8b9b7-20251204000148",
|
|
95
|
+
"@tinacms/metrics": "2.0.0",
|
|
96
|
+
"@tinacms/schema-tools": "2.0.0",
|
|
97
|
+
"@tinacms/search": "0.0.0-bf8b9b7-20251204000148",
|
|
98
|
+
"tinacms": "0.0.0-bf8b9b7-20251204000148"
|
|
93
99
|
},
|
|
94
100
|
"publishConfig": {
|
|
95
101
|
"registry": "https://registry.npmjs.org"
|