@tinacms/cli 2.2.3 → 2.2.5

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.
@@ -12,16 +12,19 @@ export declare class Codegen {
12
12
  apiURL: string;
13
13
  localUrl: string;
14
14
  productionUrl: string;
15
+ localBuildUrl?: string;
15
16
  graphqlSchemaDoc: DocumentNode;
16
17
  tinaSchema: TinaSchema;
17
18
  lookup: any;
18
19
  noClientBuildCache: boolean;
19
- constructor({ configManager, port, queryDoc, fragDoc, isLocal, graphqlSchemaDoc, tinaSchema, lookup, noClientBuildCache, }: {
20
+ localContentBuild: boolean;
21
+ constructor({ configManager, port, queryDoc, fragDoc, isLocal, localContentBuild, graphqlSchemaDoc, tinaSchema, lookup, noClientBuildCache, }: {
20
22
  configManager: ConfigManager;
21
23
  port?: number;
22
24
  queryDoc: string;
23
25
  fragDoc: string;
24
26
  isLocal: boolean;
27
+ localContentBuild?: boolean;
25
28
  graphqlSchemaDoc: DocumentNode;
26
29
  tinaSchema: TinaSchema;
27
30
  lookup: any;
@@ -4,6 +4,7 @@ import { BaseCommand } from '../baseCommands';
4
4
  export declare class BuildCommand extends BaseCommand {
5
5
  static paths: string[][];
6
6
  localOption: boolean;
7
+ contentOption: string;
7
8
  skipIndexing: boolean;
8
9
  partialReindex: boolean;
9
10
  tinaGraphQLVersion: string;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Resolves the content root directory for a Tina project.
3
+ *
4
+ * - Single-repo (no `localContentPath`): returns `rootPath`.
5
+ * - Multi-repo with `localContentPath` set and the joined directory present:
6
+ * returns the joined absolute path and logs an info message.
7
+ * - Multi-repo with `localContentPath` set but the joined directory missing:
8
+ * logs a warning citing the config file and falls back to `rootPath`.
9
+ *
10
+ * Extracted from ConfigManager for unit testing. The CLI's ConfigManager
11
+ * cannot be imported from a jest unit test because it uses `import.meta.url`
12
+ * at module scope, which CommonJS-targeted ts-jest cannot parse.
13
+ */
14
+ export declare function resolveContentRootPath(params: {
15
+ rootPath: string;
16
+ tinaFolderPath: string;
17
+ tinaConfigFilePath: string;
18
+ localContentPath: unknown;
19
+ }): Promise<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
3
  "type": "module",
4
- "version": "2.2.3",
4
+ "version": "2.2.5",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "files": [
@@ -88,12 +88,12 @@
88
88
  "vite": "^4.5.9",
89
89
  "yup": "^1.6.1",
90
90
  "zod": "^3.24.2",
91
- "@tinacms/app": "2.4.3",
91
+ "@tinacms/app": "2.4.5",
92
+ "@tinacms/graphql": "2.3.0",
93
+ "@tinacms/schema-tools": "2.7.3",
92
94
  "@tinacms/metrics": "2.0.1",
93
- "@tinacms/graphql": "2.2.4",
94
- "@tinacms/search": "1.2.10",
95
- "@tinacms/schema-tools": "2.7.2",
96
- "tinacms": "3.7.3"
95
+ "@tinacms/search": "1.2.12",
96
+ "tinacms": "3.7.5"
97
97
  },
98
98
  "publishConfig": {
99
99
  "registry": "https://registry.npmjs.org"