@tinacms/cli 0.0.0-8eeb2df-20241010045955 → 0.0.0-8facd06-20241218070802

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,6 +1,6 @@
1
- import { BuildOptions, InlineConfig, Plugin } from 'vite';
2
- import { Database } from '@tinacms/graphql';
3
- import { ConfigManager } from '../config-manager';
1
+ import type { Database } from '@tinacms/graphql';
2
+ import { type BuildOptions, ConfigEnv, type InlineConfig, type Plugin, UserConfig } from 'vite';
3
+ import type { ConfigManager } from '../config-manager';
4
4
  /**
5
5
  * This type is duplicated in he `TinaMediaStore`
6
6
  * It represents the files that are available at build time
@@ -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;
@@ -0,0 +1,4 @@
1
+ import type { Plugin } from 'esbuild';
2
+ import type { AliasPathOptions } from './normalize-options';
3
+ export declare function escapeNamespace(keys: string[]): RegExp;
4
+ export declare const aliasPath: (options?: AliasPathOptions) => Plugin;
@@ -0,0 +1,4 @@
1
+ import { aliasPath } from './esbuild-plugin-alias-path';
2
+ export { aliasPath };
3
+ export default aliasPath;
4
+ export type { AliasPathOptions } from './normalize-options';
@@ -0,0 +1,9 @@
1
+ export interface AliasPathOptions {
2
+ alias?: Record<string, string>;
3
+ skip?: boolean;
4
+ cwd?: string;
5
+ }
6
+ export interface NormalizedAliasPathOptions extends Required<AliasPathOptions> {
7
+ }
8
+ export declare function recursiveResolve(alias: Record<string, string>, cwd: string): Record<string, string>;
9
+ export declare function normalizeOption(options?: AliasPathOptions): NormalizedAliasPathOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.0.0-8eeb2df-20241010045955",
3
+ "version": "0.0.0-8facd06-20241218070802",
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,21 @@
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-8eeb2df-20241010045955"
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
- "yup": "^0.32.11",
87
+ "yup": "^1.4.0",
87
88
  "zod": "^3.23.8",
88
- "@tinacms/app": "0.0.0-8eeb2df-20241010045955",
89
- "@tinacms/graphql": "0.0.0-8eeb2df-20241010045955",
90
- "@tinacms/metrics": "1.0.7",
91
- "@tinacms/schema-tools": "1.6.5",
92
- "@tinacms/search": "0.0.0-8eeb2df-20241010045955",
93
- "tinacms": "0.0.0-8eeb2df-20241010045955"
89
+ "@tinacms/app": "2.1.14",
90
+ "@tinacms/metrics": "1.0.8",
91
+ "@tinacms/schema-tools": "1.6.9",
92
+ "@tinacms/search": "1.0.36",
93
+ "tinacms": "2.5.2",
94
+ "@tinacms/graphql": "1.5.9"
94
95
  },
95
96
  "publishConfig": {
96
97
  "registry": "https://registry.npmjs.org"