@tinacms/cli 1.4.1 → 1.5.1

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.
@@ -7,12 +7,10 @@ export declare class Codegen {
7
7
  schema: GraphQLSchema;
8
8
  queryDoc: string;
9
9
  fragDoc: string;
10
- noSDK: boolean;
11
- constructor({ configManager, port, schema, noSDK, queryDoc, fragDoc, }: {
10
+ constructor({ configManager, port, schema, queryDoc, fragDoc, }: {
12
11
  configManager: ConfigManager;
13
12
  port?: number;
14
13
  schema: GraphQLSchema;
15
- noSDK: boolean;
16
14
  queryDoc: string;
17
15
  fragDoc: string;
18
16
  });
@@ -18,13 +18,5 @@ declare type AuditArgs = {
18
18
  verbose?: boolean;
19
19
  };
20
20
  export declare const auditDocuments: (args: AuditArgs) => Promise<boolean>;
21
- export declare const transformDocumentIntoMutationRequestPayload: (document: {
22
- [key: string]: unknown;
23
- _collection: string;
24
- __typename?: string;
25
- _template: string;
26
- }, instructions: {
27
- includeCollection?: boolean;
28
- includeTemplate?: boolean;
29
- }, defaults?: any) => any;
21
+ export declare const mergeValuesWithDefaults: (document: object, defaults?: object) => {};
30
22
  export {};
@@ -1,3 +1,3 @@
1
1
  import { Database } from '@tinacms/graphql';
2
2
  import { ConfigManager } from '../../config-manager';
3
- export declare const buildProductionSpa: (configManager: ConfigManager, database: Database, apiURL: string, noSDK: boolean) => Promise<import("rollup").RollupOutput | import("rollup").RollupOutput[] | import("rollup").RollupWatcher>;
3
+ export declare const buildProductionSpa: (configManager: ConfigManager, database: Database, apiURL: string) => Promise<import("rollup").RollupOutput | import("rollup").RollupOutput[] | import("rollup").RollupWatcher>;
@@ -7,3 +7,4 @@ export declare class CodemodCommand extends Command {
7
7
  catch(error: any): Promise<void>;
8
8
  execute(): Promise<number | void>;
9
9
  }
10
+ export declare const writeGitignore: (rootPath: string) => Promise<void>;
@@ -1,3 +1,3 @@
1
1
  import { Database } from '@tinacms/graphql';
2
2
  import { ConfigManager } from '../../../config-manager';
3
- export declare const createDevServer: (configManager: ConfigManager, database: Database, apiURL: string, noSDK: boolean, noWatch: boolean) => Promise<import("vite").ViteDevServer>;
3
+ export declare const createDevServer: (configManager: ConfigManager, database: Database, apiURL: string, noWatch: boolean) => Promise<import("vite").ViteDevServer>;
@@ -1,6 +1,7 @@
1
1
  import { Command } from 'clipanion';
2
2
  export declare class InitCommand extends Command {
3
3
  static paths: string[][];
4
+ pathToForestryConfig: string;
4
5
  rootPath: string;
5
6
  noTelemetry: boolean;
6
7
  static usage: import("clipanion").Usage;
@@ -33,10 +33,16 @@ export declare class ConfigManager {
33
33
  spaMainPath: string;
34
34
  spaHTMLPath: string;
35
35
  tinaGraphQLVersionFromCLI?: string;
36
- constructor(rootPath?: string, tinaGraphQLVersion?: string);
36
+ legacyNoSDK?: boolean;
37
+ constructor({ rootPath, tinaGraphQLVersion, legacyNoSDK, }: {
38
+ rootPath: string;
39
+ tinaGraphQLVersion?: string;
40
+ legacyNoSDK?: boolean;
41
+ });
37
42
  isUsingTs(): boolean;
38
43
  hasSelfHostedConfig(): boolean;
39
44
  hasSeparateContentRoot(): boolean;
45
+ shouldSkipSDK(): boolean;
40
46
  processConfig(): Promise<void>;
41
47
  getTinaFolderPath(rootPath: any): Promise<string>;
42
48
  getTinaGraphQLVersion(): string;
@@ -1,4 +1,4 @@
1
1
  import { Database, Bridge } from '@tinacms/graphql';
2
2
  import { ConfigManager } from './config-manager';
3
3
  export declare const createDBServer: (port: number) => void;
4
- export declare function createAndInitializeDatabase(configManager: ConfigManager, bridgeOverride?: Bridge): Promise<Database>;
4
+ export declare function createAndInitializeDatabase(configManager: ConfigManager, datalayerPort: number, bridgeOverride?: Bridge): Promise<Database>;
@@ -1,11 +1,10 @@
1
1
  import { BuildOptions, InlineConfig, Plugin } from 'vite';
2
2
  import { Database } from '@tinacms/graphql';
3
3
  import { ConfigManager } from '../config-manager';
4
- export declare const createConfig: ({ configManager, database, apiURL, plugins, noSDK, noWatch, rollupOptions, }: {
4
+ export declare const createConfig: ({ configManager, database, apiURL, plugins, noWatch, rollupOptions, }: {
5
5
  configManager: ConfigManager;
6
6
  database: Database;
7
7
  apiURL: string;
8
- noSDK: boolean;
9
8
  noWatch: boolean;
10
9
  plugins?: Plugin[];
11
10
  rollupOptions?: BuildOptions['rollupOptions'];
@@ -0,0 +1,11 @@
1
+ import type { Plugin } from 'vite';
2
+ import type { Database } from '@tinacms/graphql';
3
+ import type { ConfigManager } from '../config-manager';
4
+ export declare const transformTsxPlugin: ({ configManager: _configManager, }: {
5
+ configManager: ConfigManager;
6
+ }) => Plugin;
7
+ export declare const devServerEndPointsPlugin: ({ configManager, apiURL, database, }: {
8
+ apiURL: string;
9
+ database: Database;
10
+ configManager: ConfigManager;
11
+ }) => Plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -56,11 +56,12 @@
56
56
  "@tailwindcss/aspect-ratio": "^0.4.0",
57
57
  "@tailwindcss/line-clamp": "^0.3.1",
58
58
  "@tailwindcss/typography": "^0.5.9",
59
- "@tinacms/app": "1.2.0",
60
- "@tinacms/datalayer": "1.2.0",
61
- "@tinacms/graphql": "1.4.0",
59
+ "@tinacms/app": "1.2.2",
60
+ "@tinacms/datalayer": "1.2.2",
61
+ "@tinacms/graphql": "1.4.2",
62
62
  "@tinacms/metrics": "1.0.2",
63
- "@tinacms/schema-tools": "1.4.0",
63
+ "@tinacms/schema-tools": "1.4.2",
64
+ "@vitejs/plugin-react": "^2.1.0",
64
65
  "ajv": "^6.12.3",
65
66
  "altair-express-middleware": "4.0.6",
66
67
  "auto-bind": "^4.0.0",
@@ -99,7 +100,7 @@
99
100
  "rollup-plugin-visualizer": "^5.9.0",
100
101
  "tailwindcss": "^3.2.7",
101
102
  "url-pattern": "^1.0.3",
102
- "vite": "^4.1.4",
103
+ "vite": "4.1.4",
103
104
  "yarn": "^1.22.17",
104
105
  "yup": "^0.32.9",
105
106
  "zod": "^3.14.3"