@tinacms/cli 0.0.0-f5b2d65-20241216014706 → 0.0.0-f6ffae4-20250213230656

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,11 @@ export declare class DevCommand extends BaseCommand {
7
8
  watchFolders: string;
8
9
  noWatch: boolean;
9
10
  outputSearchIndexPath: string;
11
+ indexingLock: AsyncLock;
10
12
  static usage: import("clipanion").Usage;
11
13
  catch(error: any): Promise<void>;
12
14
  logDeprecationWarnings(): void;
13
15
  execute(): Promise<number | void>;
14
- watchContentFiles(configManager: ConfigManager, database: Database, searchIndexer?: SearchIndexer): void;
15
- watchQueries(configManager: ConfigManager, callback: () => Promise<string>): void;
16
+ watchContentFiles(configManager: ConfigManager, database: Database, databaseLock: (fn: () => Promise<void>) => Promise<void>, searchIndexer?: SearchIndexer): void;
17
+ watchQueries(configManager: ConfigManager, databaseLock: (fn: () => Promise<void>) => Promise<void>, callback: () => Promise<string>): void;
16
18
  }
@@ -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-f5b2d65-20241216014706",
3
+ "version": "0.0.0-f6ffae4-20250213230656",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -36,9 +36,7 @@
36
36
  "@types/progress": "^2.0.7",
37
37
  "@types/prompts": "^2.4.9",
38
38
  "@types/yup": "^0.32.0",
39
- "esbuild-plugin-alias": "^0.2.1",
40
39
  "jest": "^29.7.0",
41
- "tsconfig-paths": "^4.2.0",
42
40
  "@tinacms/scripts": "1.3.1"
43
41
  },
44
42
  "dependencies": {
@@ -57,6 +55,7 @@
57
55
  "@tailwindcss/typography": "^0.5.15",
58
56
  "@vitejs/plugin-react": "3.1.0",
59
57
  "altair-express-middleware": "^7.3.6",
58
+ "async-lock": "^1.4.1",
60
59
  "auto-bind": "^4.0.0",
61
60
  "body-parser": "^1.20.3",
62
61
  "busboy": "^1.6.0",
@@ -67,8 +66,7 @@
67
66
  "cors": "^2.8.5",
68
67
  "crypto-js": "^4.2.0",
69
68
  "dotenv": "^16.4.5",
70
- "esbuild": "^0.18.20",
71
- "esbuild-plugin-alias-path": "^2.0.2",
69
+ "esbuild": "^0.24.0",
72
70
  "fs-extra": "^11.2.0",
73
71
  "graphql": "15.8.0",
74
72
  "js-yaml": "^4.1.0",
@@ -87,12 +85,12 @@
87
85
  "vite": "^4.5.5",
88
86
  "yup": "^1.4.0",
89
87
  "zod": "^3.23.8",
90
- "@tinacms/app": "2.1.14",
91
- "@tinacms/graphql": "1.5.9",
88
+ "@tinacms/app": "2.1.19",
92
89
  "@tinacms/metrics": "1.0.8",
93
- "@tinacms/search": "1.0.36",
94
- "@tinacms/schema-tools": "1.6.9",
95
- "tinacms": "2.5.2"
90
+ "@tinacms/schema-tools": "1.7.0",
91
+ "@tinacms/graphql": "1.5.12",
92
+ "@tinacms/search": "1.0.39",
93
+ "tinacms": "2.6.4"
96
94
  },
97
95
  "publishConfig": {
98
96
  "registry": "https://registry.npmjs.org"