@tinacms/cli 0.0.0-ef282d9-20241024212433 → 0.0.0-f00f07f-20241216063323

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.
@@ -21,15 +21,25 @@ export declare class BuildCommand extends BaseCommand {
21
21
  execute(): Promise<number | void>;
22
22
  checkClientInfo(configManager: ConfigManager, apiURL: string, previewBaseBranch?: string): Promise<{
23
23
  hasUpstream: boolean;
24
+ timestamp: number;
24
25
  }>;
25
26
  syncProject(configManager: ConfigManager, apiURL: string, options?: {
26
27
  upstreamBranch?: string;
27
28
  previewBaseBranch?: string;
28
29
  previewName?: string;
29
30
  }): Promise<void>;
30
- checkGraphqlSchema(configManager: ConfigManager, database: Database, apiURL: string): Promise<void>;
31
+ checkGraphqlSchema(configManager: ConfigManager, database: Database, apiURL: string, timestamp: number): Promise<void>;
32
+ checkTinaSchema(configManager: ConfigManager, database: Database, apiURL: string, previewName: string, verbose: boolean, timestamp: number): Promise<void>;
31
33
  }
32
34
  export declare const fetchRemoteGraphqlSchema: ({ url, token, }: {
33
35
  url: string;
34
36
  token?: string;
37
+ }) => Promise<{
38
+ remoteSchema: any;
39
+ remoteRuntimeVersion: string;
40
+ remoteProjectVersion: string;
41
+ }>;
42
+ export declare const fetchSchemaSha: ({ url, token, }: {
43
+ url: string;
44
+ token?: string;
35
45
  }) => Promise<any>;
@@ -55,7 +55,12 @@ export declare class ConfigManager {
55
55
  shouldSkipSDK(): boolean;
56
56
  processConfig(): Promise<void>;
57
57
  getTinaFolderPath(rootPath: any): Promise<string>;
58
- getTinaGraphQLVersion(): string;
58
+ getTinaGraphQLVersion(): {
59
+ fullVersion: string;
60
+ major: string;
61
+ minor: string;
62
+ patch: string;
63
+ };
59
64
  printGeneratedClientFilePath(): string;
60
65
  printGeneratedTypesFilePath(): string;
61
66
  printoutputHTMLFilePath(): string;
@@ -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>>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Converts TypeScript-style `paths` aliases to esbuild-compatible format.
3
+ * @param {string} absoluteBaseUrl - The absolute base URL from tsconfig.
4
+ * @param {Record<string, string[]>} paths - The alias paths from tsconfig.
5
+ * @returns {Record<string, string>} - A mapping of esbuild-compatible aliases.
6
+ */
7
+ export declare function resolveTsPathsToEsbuildAliases(absoluteBaseUrl: any, paths: any): {};
@@ -1,4 +1,6 @@
1
1
  /**
2
2
 
3
3
  */
4
+ import { ChangeType } from '@graphql-inspector/core';
4
5
  export declare const parseMediaFolder: (str: string) => string;
6
+ export declare const getFaqLink: (type: ChangeType) => string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.0.0-ef282d9-20241024212433",
3
+ "version": "0.0.0-f00f07f-20241216063323",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -26,7 +26,6 @@
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
30
  "@types/fs-extra": "^11.0.4",
32
31
  "@types/jest": "26.0.4",
@@ -38,18 +37,19 @@
38
37
  "@types/prompts": "^2.4.9",
39
38
  "@types/yup": "^0.32.0",
40
39
  "jest": "^29.7.0",
41
- "@tinacms/scripts": "1.3.0"
40
+ "tsconfig-paths": "^4.2.0",
41
+ "@tinacms/scripts": "1.3.1"
42
42
  },
43
43
  "dependencies": {
44
44
  "@graphql-codegen/core": "^2.6.8",
45
45
  "@graphql-codegen/plugin-helpers": "latest",
46
- "@graphql-codegen/typescript": "^4.0.9",
47
- "@graphql-codegen/typescript-operations": "^4.2.3",
46
+ "@graphql-codegen/typescript": "^4.1.1",
47
+ "@graphql-codegen/typescript-operations": "^4.3.1",
48
48
  "@graphql-codegen/visitor-plugin-common": "^4.1.2",
49
49
  "@graphql-inspector/core": "^4.2.2",
50
50
  "@graphql-tools/graphql-file-loader": "^7.5.17",
51
51
  "@graphql-tools/load": "^7.8.14",
52
- "@rollup/pluginutils": "^5.1.2",
52
+ "@rollup/pluginutils": "^5.1.3",
53
53
  "@svgr/core": "8.1.0",
54
54
  "@tailwindcss/aspect-ratio": "^0.4.2",
55
55
  "@tailwindcss/container-queries": "^0.1.1",
@@ -67,6 +67,7 @@
67
67
  "crypto-js": "^4.2.0",
68
68
  "dotenv": "^16.4.5",
69
69
  "esbuild": "^0.18.20",
70
+ "esbuild-plugin-alias-path": "^2.0.2",
70
71
  "fs-extra": "^11.2.0",
71
72
  "graphql": "15.8.0",
72
73
  "js-yaml": "^4.1.0",
@@ -79,18 +80,18 @@
79
80
  "progress": "^2.0.3",
80
81
  "prompts": "^2.4.2",
81
82
  "readable-stream": "^4.5.2",
82
- "tailwindcss": "^3.4.13",
83
+ "tailwindcss": "^3.4.15",
83
84
  "typanion": "3.13.0",
84
- "typescript": "^5.6.2",
85
+ "typescript": "^5.6.3",
85
86
  "vite": "^4.5.5",
86
87
  "yup": "^1.4.0",
87
88
  "zod": "^3.23.8",
88
- "@tinacms/app": "0.0.0-ef282d9-20241024212433",
89
- "@tinacms/graphql": "0.0.0-ef282d9-20241024212433",
90
- "@tinacms/metrics": "1.0.7",
91
- "@tinacms/schema-tools": "0.0.0-ef282d9-20241024212433",
92
- "@tinacms/search": "0.0.0-ef282d9-20241024212433",
93
- "tinacms": "0.0.0-ef282d9-20241024212433"
89
+ "@tinacms/app": "2.1.14",
90
+ "@tinacms/graphql": "1.5.9",
91
+ "@tinacms/metrics": "1.0.8",
92
+ "@tinacms/schema-tools": "1.6.9",
93
+ "@tinacms/search": "1.0.36",
94
+ "tinacms": "2.5.2"
94
95
  },
95
96
  "publishConfig": {
96
97
  "registry": "https://registry.npmjs.org"