@tinacms/cli 0.0.0-8facd06-20241218070802 → 0.0.0-921f235-20250326012804

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,3 +1,4 @@
1
+ import AsyncLock from 'async-lock';
1
2
  import { Database } from '@tinacms/graphql';
2
3
  import { ConfigManager } from '../../config-manager';
3
4
  import { BaseCommand } from '../baseCommands';
@@ -7,10 +8,12 @@ export declare class DevCommand extends BaseCommand {
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>;
@@ -1,5 +1,5 @@
1
1
  import type { Database } from '@tinacms/graphql';
2
- import { type BuildOptions, ConfigEnv, type InlineConfig, type Plugin, UserConfig } from 'vite';
2
+ import { type BuildOptions, type InlineConfig, type Plugin } from 'vite';
3
3
  import type { ConfigManager } from '../config-manager';
4
4
  /**
5
5
  * This type is duplicated in he `TinaMediaStore`
@@ -22,23 +22,12 @@ interface StaticMediaItem {
22
22
  export interface StaticMedia {
23
23
  [offset: string]: StaticMediaItem[];
24
24
  }
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, }: {
25
+ export declare const createConfig: ({ configManager, apiURL, plugins, noWatch, rollupOptions, }: {
36
26
  configManager: ConfigManager;
37
27
  database: Database;
38
28
  apiURL: string;
39
29
  noWatch: boolean;
40
30
  plugins?: Plugin[];
41
31
  rollupOptions?: BuildOptions["rollupOptions"];
42
- viteConfigEnv?: ConfigEnv;
43
32
  }) => Promise<InlineConfig>;
44
33
  export {};
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "0.0.0-8facd06-20241218070802",
3
+ "version": "0.0.0-921f235-20250326012804",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -37,25 +37,25 @@
37
37
  "@types/prompts": "^2.4.9",
38
38
  "@types/yup": "^0.32.0",
39
39
  "jest": "^29.7.0",
40
- "tsconfig-paths": "^4.2.0",
41
- "@tinacms/scripts": "1.3.1"
40
+ "@tinacms/scripts": "1.3.3"
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.1.1",
47
- "@graphql-codegen/typescript-operations": "^4.3.1",
45
+ "@graphql-codegen/typescript": "^4.1.3",
46
+ "@graphql-codegen/typescript-operations": "^4.4.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.3",
51
+ "@rollup/pluginutils": "^5.1.4",
53
52
  "@svgr/core": "8.1.0",
54
53
  "@tailwindcss/aspect-ratio": "^0.4.2",
55
54
  "@tailwindcss/container-queries": "^0.1.1",
56
- "@tailwindcss/typography": "^0.5.15",
55
+ "@tailwindcss/typography": "^0.5.16",
57
56
  "@vitejs/plugin-react": "3.1.0",
58
57
  "altair-express-middleware": "^7.3.6",
58
+ "async-lock": "^1.4.1",
59
59
  "auto-bind": "^4.0.0",
60
60
  "body-parser": "^1.20.3",
61
61
  "busboy": "^1.6.0",
@@ -65,10 +65,9 @@
65
65
  "clipanion": "^3.2.1",
66
66
  "cors": "^2.8.5",
67
67
  "crypto-js": "^4.2.0",
68
- "dotenv": "^16.4.5",
69
- "esbuild": "^0.18.20",
70
- "esbuild-plugin-alias-path": "^2.0.2",
71
- "fs-extra": "^11.2.0",
68
+ "dotenv": "^16.4.7",
69
+ "esbuild": "^0.24.2",
70
+ "fs-extra": "^11.3.0",
72
71
  "graphql": "15.8.0",
73
72
  "js-yaml": "^4.1.0",
74
73
  "log4js": "^6.9.1",
@@ -79,19 +78,19 @@
79
78
  "prettier": "^2.8.8",
80
79
  "progress": "^2.0.3",
81
80
  "prompts": "^2.4.2",
82
- "readable-stream": "^4.5.2",
83
- "tailwindcss": "^3.4.15",
81
+ "readable-stream": "^4.7.0",
82
+ "tailwindcss": "^3.4.17",
84
83
  "typanion": "3.13.0",
85
- "typescript": "^5.6.3",
86
- "vite": "^4.5.5",
87
- "yup": "^1.4.0",
88
- "zod": "^3.23.8",
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"
84
+ "typescript": "^5.7.3",
85
+ "vite": "^4.5.9",
86
+ "yup": "^1.6.1",
87
+ "zod": "^3.24.2",
88
+ "@tinacms/graphql": "0.0.0-921f235-20250326012804",
89
+ "@tinacms/metrics": "1.0.9",
90
+ "@tinacms/schema-tools": "1.7.2",
91
+ "@tinacms/app": "0.0.0-921f235-20250326012804",
92
+ "@tinacms/search": "0.0.0-921f235-20250326012804",
93
+ "tinacms": "0.0.0-921f235-20250326012804"
95
94
  },
96
95
  "publishConfig": {
97
96
  "registry": "https://registry.npmjs.org"
@@ -1,7 +0,0 @@
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 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- import { aliasPath } from './esbuild-plugin-alias-path';
2
- export { aliasPath };
3
- export default aliasPath;
4
- export type { AliasPathOptions } from './normalize-options';
@@ -1,9 +0,0 @@
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;