@tinacms/cli 0.0.0-fd664d8-20250407054012 → 0.0.0-fd7d6a8-20251202025028

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.
@@ -1,4 +1,4 @@
1
- import type { TypeDefinitionNode, GraphQLSchema } from 'graphql';
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;
@@ -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;
@@ -0,0 +1,3 @@
1
+ /** Removes trailing slash from path. Separator to remove is chosen based on
2
+ * operating system. */
3
+ export declare function stripNativeTrailingSlash(p: string): string;
@@ -1,3 +1,4 @@
1
+ export declare function timeout(ms: any): Promise<void>;
1
2
  export declare function sleepAndCallFunc<T>({ fn, ms, }: {
2
3
  fn: () => Promise<T>;
3
4
  ms: number;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.0.0-fd664d8-20250407054012",
3
+ "type": "module",
4
+ "version": "0.0.0-fd7d6a8-20251202025028",
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,11 +38,11 @@
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": "0.0.0-fd664d8-20250407054012"
45
+ "@tinacms/scripts": "1.4.1"
41
46
  },
42
47
  "dependencies": {
43
48
  "@graphql-codegen/core": "^2.6.8",
@@ -85,12 +90,12 @@
85
90
  "vite": "^4.5.9",
86
91
  "yup": "^1.6.1",
87
92
  "zod": "^3.24.2",
88
- "@tinacms/app": "0.0.0-fd664d8-20250407054012",
89
- "@tinacms/graphql": "0.0.0-fd664d8-20250407054012",
90
- "@tinacms/schema-tools": "0.0.0-fd664d8-20250407054012",
91
- "@tinacms/metrics": "1.0.9",
92
- "@tinacms/search": "0.0.0-fd664d8-20250407054012",
93
- "tinacms": "0.0.0-fd664d8-20250407054012"
93
+ "@tinacms/graphql": "2.0.0",
94
+ "@tinacms/app": "0.0.0-fd7d6a8-20251202025028",
95
+ "@tinacms/metrics": "2.0.0",
96
+ "@tinacms/schema-tools": "2.0.0",
97
+ "@tinacms/search": "1.1.4",
98
+ "tinacms": "0.0.0-fd7d6a8-20251202025028"
94
99
  },
95
100
  "publishConfig": {
96
101
  "registry": "https://registry.npmjs.org"