@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.
- package/dist/cmds/forestry-migrate/util/index.d.ts +4 -7
- package/dist/cmds/index.d.ts +12 -0
- package/dist/cmds/init/apply.d.ts +19 -0
- package/dist/cmds/init/codegen/index.d.ts +3 -0
- package/dist/cmds/init/codegen/util.d.ts +4 -0
- package/dist/cmds/init/configure.d.ts +7 -0
- package/dist/cmds/init/detectEnvironment.d.ts +9 -0
- package/dist/cmds/init/index.d.ts +43 -24
- package/dist/cmds/init/prompts/askTinaCloudSetup.d.ts +4 -0
- package/dist/cmds/init/prompts/authProvider.d.ts +6 -0
- package/dist/cmds/init/prompts/databaseAdapter.d.ts +6 -0
- package/dist/cmds/init/prompts/generatedFiles.d.ts +6 -0
- package/dist/cmds/init/prompts/gitProvider.d.ts +4 -0
- package/dist/cmds/init/prompts/index.d.ts +29 -0
- package/dist/cmds/init/prompts/types.d.ts +42 -0
- package/dist/cmds/init/templates/config.d.ts +11 -0
- package/dist/cmds/init/templates/content.d.ts +1 -0
- package/dist/cmds/init/templates/database.d.ts +8 -0
- package/dist/cmds/init/templates/next.d.ts +8 -0
- package/dist/cmds/init/templates/tinaNextRoute.d.ts +6 -0
- package/dist/index.js +2138 -824
- package/dist/lib/getPath.d.ts +0 -3
- package/dist/next/codegen/index.d.ts +1 -0
- package/dist/next/commands/init-command/index.d.ts +2 -0
- package/dist/next/config-manager.d.ts +5 -1
- package/dist/utils/script-helpers.d.ts +7 -2
- package/package.json +12 -11
- package/dist/cmds/init/setup-files/config.d.ts +0 -9
- package/dist/cmds/init/setup-files/index.d.ts +0 -6
package/dist/lib/getPath.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -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<
|
|
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
|
|
7
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
62
|
-
"tinacms": "1.5.
|
|
63
|
-
"@tinacms/datalayer": "1.2.
|
|
64
|
-
"@tinacms/graphql": "1.4.
|
|
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.
|
|
67
|
-
"@tinacms/search": "1.0.
|
|
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",
|