@tinacms/cli 0.0.0-b4c6a60-20241010070518 → 0.0.0-b720fb9-20241203044105

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.
@@ -28,8 +28,13 @@ export declare class BuildCommand extends BaseCommand {
28
28
  previewName?: string;
29
29
  }): Promise<void>;
30
30
  checkGraphqlSchema(configManager: ConfigManager, database: Database, apiURL: string): Promise<void>;
31
+ checkTinaSchema(configManager: ConfigManager, database: Database, apiURL: string, previewName: string, verbose: boolean): Promise<void>;
31
32
  }
32
33
  export declare const fetchRemoteGraphqlSchema: ({ url, token, }: {
33
34
  url: string;
34
35
  token?: string;
35
36
  }) => Promise<any>;
37
+ export declare const fetchSchemaSha: ({ url, token, }: {
38
+ url: string;
39
+ token?: string;
40
+ }) => Promise<any>;
@@ -1,5 +1,5 @@
1
1
  import type { Database } from '@tinacms/graphql';
2
- import { type BuildOptions, type InlineConfig, type Plugin } from 'vite';
2
+ import { type BuildOptions, ConfigEnv, type InlineConfig, type Plugin, UserConfig } from 'vite';
3
3
  import type { ConfigManager } from '../config-manager';
4
4
  /**
5
5
  * This type is duplicated in he `TinaMediaStore`
@@ -22,12 +22,23 @@ interface StaticMediaItem {
22
22
  export interface StaticMedia {
23
23
  [offset: string]: StaticMediaItem[];
24
24
  }
25
- export declare const createConfig: ({ configManager, database, apiURL, plugins, noWatch, rollupOptions, }: {
25
+ export declare const loadProjectConfig: ({ rootPath, viteConfigEnv, }: {
26
+ rootPath: string;
27
+ viteConfigEnv?: ConfigEnv;
28
+ }) => Promise<{
29
+ path: string;
30
+ config: UserConfig;
31
+ dependencies: string[];
32
+ } | {
33
+ config: UserConfig;
34
+ }>;
35
+ export declare const createConfig: ({ configManager, database, apiURL, plugins, noWatch, rollupOptions, viteConfigEnv, }: {
26
36
  configManager: ConfigManager;
27
37
  database: Database;
28
38
  apiURL: string;
29
39
  noWatch: boolean;
30
40
  plugins?: Plugin[];
31
41
  rollupOptions?: BuildOptions["rollupOptions"];
42
+ viteConfigEnv?: ConfigEnv;
32
43
  }) => Promise<InlineConfig>;
33
44
  export {};
@@ -1,5 +1,5 @@
1
1
  /**
2
2
 
3
3
  */
4
- import http from 'http';
4
+ import http from 'node:http';
5
5
  export declare const gqlServer: (database: any, verbose: boolean) => Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.0.0-b4c6a60-20241010070518",
3
+ "version": "0.0.0-b720fb9-20241203044105",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -26,9 +26,8 @@
26
26
  "@types/cors": "2.8.5",
27
27
  "@types/crypto-js": "^4.2.2",
28
28
  "@types/express": "^4.17.21",
29
- "@types/express-graphql": "^0.9.0",
30
29
  "@types/figlet": "1.2.0",
31
- "@types/fs-extra": "^9.0.13",
30
+ "@types/fs-extra": "^11.0.4",
32
31
  "@types/jest": "26.0.4",
33
32
  "@types/js-yaml": "^4.0.9",
34
33
  "@types/listr": "0.14.2",
@@ -36,20 +35,20 @@
36
35
  "@types/multer": "^1.4.12",
37
36
  "@types/progress": "^2.0.7",
38
37
  "@types/prompts": "^2.4.9",
39
- "@types/yup": "^0.29.14",
38
+ "@types/yup": "^0.32.0",
40
39
  "jest": "^29.7.0",
41
- "@tinacms/scripts": "0.0.0-b4c6a60-20241010070518"
40
+ "@tinacms/scripts": "1.3.1"
42
41
  },
43
42
  "dependencies": {
44
43
  "@graphql-codegen/core": "^2.6.8",
45
44
  "@graphql-codegen/plugin-helpers": "latest",
46
- "@graphql-codegen/typescript": "^4.0.9",
47
- "@graphql-codegen/typescript-operations": "^4.2.3",
45
+ "@graphql-codegen/typescript": "^4.1.1",
46
+ "@graphql-codegen/typescript-operations": "^4.3.1",
48
47
  "@graphql-codegen/visitor-plugin-common": "^4.1.2",
49
48
  "@graphql-inspector/core": "^4.2.2",
50
49
  "@graphql-tools/graphql-file-loader": "^7.5.17",
51
50
  "@graphql-tools/load": "^7.8.14",
52
- "@rollup/pluginutils": "^5.1.2",
51
+ "@rollup/pluginutils": "^5.1.3",
53
52
  "@svgr/core": "8.1.0",
54
53
  "@tailwindcss/aspect-ratio": "^0.4.2",
55
54
  "@tailwindcss/container-queries": "^0.1.1",
@@ -79,18 +78,18 @@
79
78
  "progress": "^2.0.3",
80
79
  "prompts": "^2.4.2",
81
80
  "readable-stream": "^4.5.2",
82
- "tailwindcss": "^3.4.13",
81
+ "tailwindcss": "^3.4.15",
83
82
  "typanion": "3.13.0",
84
- "typescript": "^5.6.2",
83
+ "typescript": "^5.6.3",
85
84
  "vite": "^4.5.5",
86
- "yup": "^0.32.11",
85
+ "yup": "^1.4.0",
87
86
  "zod": "^3.23.8",
88
- "@tinacms/app": "0.0.0-b4c6a60-20241010070518",
89
- "@tinacms/graphql": "0.0.0-b4c6a60-20241010070518",
90
- "@tinacms/metrics": "1.0.7",
91
- "@tinacms/schema-tools": "0.0.0-b4c6a60-20241010070518",
92
- "@tinacms/search": "0.0.0-b4c6a60-20241010070518",
93
- "tinacms": "0.0.0-b4c6a60-20241010070518"
87
+ "@tinacms/app": "0.0.0-b720fb9-20241203044105",
88
+ "@tinacms/graphql": "1.5.8",
89
+ "@tinacms/metrics": "1.0.8",
90
+ "@tinacms/schema-tools": "1.6.8",
91
+ "@tinacms/search": "1.0.35",
92
+ "tinacms": "0.0.0-b720fb9-20241203044105"
94
93
  },
95
94
  "publishConfig": {
96
95
  "registry": "https://registry.npmjs.org"