@tinacms/cli 1.5.31 → 1.5.33

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.
@@ -9,7 +9,4 @@ interface GetPathParams {
9
9
  }
10
10
  export declare const fileExists: ({ projectDir, filename, allowedTypes, }: Omit<GetPathParams, 'errorMessage'>) => boolean;
11
11
  export declare const getPath: ({ projectDir, filename, allowedTypes, errorMessage, }: GetPathParams) => any;
12
- export declare const getClientPath: ({ projectDir }: {
13
- projectDir: string;
14
- }) => any;
15
12
  export {};
@@ -36,6 +36,7 @@ export declare class Codegen {
36
36
  execute(): Promise<string>;
37
37
  private _createApiUrl;
38
38
  getApiURL(): string;
39
+ genDatabaseClient(): Promise<string>;
39
40
  genClient(): Promise<{
40
41
  apiURL: string;
41
42
  clientString: string;
@@ -3,7 +3,9 @@ export declare class InitCommand extends Command {
3
3
  static paths: string[][];
4
4
  pathToForestryConfig: string;
5
5
  rootPath: string;
6
+ debug: boolean;
6
7
  noTelemetry: boolean;
8
+ tinaVersion: string;
7
9
  static usage: import("clipanion").Usage;
8
10
  catch(error: any): Promise<void>;
9
11
  execute(): Promise<number | void>;
@@ -23,6 +23,10 @@ export declare class ConfigManager {
23
23
  generatedTypesDFilePath: string;
24
24
  generatedClientTSFilePath: string;
25
25
  generatedClientJSFilePath: string;
26
+ generatedClientDFilePath: string;
27
+ generatedDatabaseClientJSFilePath: string;
28
+ generatedDatabaseClientTSFilePath: string;
29
+ generatedDatabaseClientDFilePath: string;
26
30
  generatedQueriesFilePath: string;
27
31
  generatedFragmentsFilePath: string;
28
32
  generatedQueriesAndFragmentsGlob: string;
@@ -60,7 +64,7 @@ export declare class ConfigManager {
60
64
  /**
61
65
  * Given a filepath without an extension, find the first match (eg. tsx, ts, jsx, js)
62
66
  */
63
- getPathWithExtension(filepath: string): Promise<any>;
67
+ getPathWithExtension(filepath: string): Promise<string>;
64
68
  loadDatabaseFile(): Promise<any>;
65
69
  loadConfigFile(generatedFolderPath: string, configFilePath: string): Promise<{
66
70
  config: any;
@@ -3,5 +3,10 @@
3
3
 
4
4
 
5
5
  */
6
- export declare function generateGqlScript(scriptValue: any): string;
7
- export declare function extendNextScripts(scripts: any): any;
6
+ export declare function generateGqlScript(scriptValue: any, opts?: {
7
+ isLocalEnvVarName?: string;
8
+ }): string;
9
+ export declare function extendNextScripts(scripts: any, opts?: {
10
+ isLocalEnvVarName?: string;
11
+ addSetupUsers?: boolean;
12
+ }): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/cli",
3
- "version": "1.5.31",
3
+ "version": "1.5.33",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -21,15 +21,15 @@
21
21
  ]
22
22
  },
23
23
  "devDependencies": {
24
- "@tinacms/scripts": "1.1.2",
24
+ "@tinacms/scripts": "1.1.3",
25
25
  "@types/clear": "0.1.0",
26
26
  "@types/cli-spinner": "^0.2.1",
27
27
  "@types/cors": "2.8.5",
28
+ "@types/crypto-js": "^4.1.1",
28
29
  "@types/express": "^4.17.7",
29
30
  "@types/express-graphql": "^0.9.0",
30
31
  "@types/figlet": "1.2.0",
31
32
  "@types/fs-extra": "^9.0.11",
32
- "@types/inquirer": "^6.5.0",
33
33
  "@types/jest": "26.0.4",
34
34
  "@types/js-yaml": "^4.0.0",
35
35
  "@types/listr": "0.14.2",
@@ -40,8 +40,7 @@
40
40
  "@types/progress": "^2.0.3",
41
41
  "@types/prompts": "^2.0.13",
42
42
  "@types/yup": "^0.29.11",
43
- "jest": "^29.5.0",
44
- "typescript": "4.3.5"
43
+ "jest": "^29.5.0"
45
44
  },
46
45
  "dependencies": {
47
46
  "@graphql-codegen/core": "^2.1.0",
@@ -58,13 +57,13 @@
58
57
  "@tailwindcss/aspect-ratio": "^0.4.0",
59
58
  "@tailwindcss/line-clamp": "^0.3.1",
60
59
  "@tailwindcss/typography": "^0.5.9",
61
- "@tinacms/app": "1.2.29",
62
- "tinacms": "1.5.22",
63
- "@tinacms/datalayer": "1.2.27",
64
- "@tinacms/graphql": "1.4.27",
60
+ "@tinacms/app": "1.2.31",
61
+ "tinacms": "1.5.24",
62
+ "@tinacms/datalayer": "1.2.29",
63
+ "@tinacms/graphql": "1.4.29",
65
64
  "@tinacms/metrics": "1.0.2",
66
- "@tinacms/schema-tools": "1.4.13",
67
- "@tinacms/search": "1.0.12",
65
+ "@tinacms/schema-tools": "1.4.14",
66
+ "@tinacms/search": "1.0.14",
68
67
  "@vitejs/plugin-react": "3.1.0",
69
68
  "ajv": "^6.12.3",
70
69
  "altair-express-middleware": "4.0.6",
@@ -77,6 +76,7 @@
77
76
  "cli-spinner": "^0.2.10",
78
77
  "clipanion": "^3.2.0",
79
78
  "cors": "^2.8.5",
79
+ "crypto-js": "^4.1.1",
80
80
  "dotenv": "^16.0.1",
81
81
  "esbuild": "^0.18.10",
82
82
  "express": "^4.17.1",
@@ -104,6 +104,7 @@
104
104
  "rollup-plugin-visualizer": "^5.9.0",
105
105
  "tailwindcss": "^3.2.7",
106
106
  "typanion": "3.13.0",
107
+ "typescript": "4.3.5",
107
108
  "url-pattern": "^1.0.3",
108
109
  "vite": "^4.3.9",
109
110
  "yarn": "^1.22.17",
@@ -1,9 +0,0 @@
1
- /**
2
-
3
- */
4
- import type { AddConfigArgs, Framework } from '..';
5
- declare type Keys = Framework['name'];
6
- export declare const configExamples: {
7
- [key in Keys]: (args?: AddConfigArgs) => string;
8
- };
9
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
-
3
- */
4
- export declare const nextPostPage: ({ usingSrc, }: {
5
- usingSrc: boolean;
6
- }) => string;