@tsed/cli 7.0.0-alpha.3 → 7.0.0-alpha.4
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/lib/esm/commands/init/InitCmd.js +1 -1
- package/lib/esm/commands/init/config/FeaturesPrompt.js +12 -13
- package/lib/esm/commands/init/mappers/mapToContext.js +4 -0
- package/lib/esm/commands/init/prompts/getFeaturesPrompt.js +0 -12
- package/lib/esm/commands/init/utils/hasFeature.js +3 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/commands/init/config/FeaturesPrompt.d.ts +13 -6
- package/lib/types/commands/init/prompts/getFeaturesPrompt.d.ts +0 -6
- package/lib/types/commands/init/utils/hasFeature.d.ts +1 -0
- package/lib/types/interfaces/RenderDataContext.d.ts +1 -0
- package/package.json +3 -3
|
@@ -20,11 +20,11 @@ export declare enum FeatureType {
|
|
|
20
20
|
CONFIG_DOTENV = "config:dotenv",
|
|
21
21
|
CONFIG_JSON = "config:json",
|
|
22
22
|
CONFIG_YAML = "config:yaml",
|
|
23
|
-
CONFIG_AWS_SECRETS = "config:aws_secrets",
|
|
24
|
-
CONFIG_IOREDIS = "config:ioredis",
|
|
25
|
-
CONFIG_MONGO = "config:mongo",
|
|
26
|
-
CONFIG_VAULT = "config:vault",
|
|
27
|
-
CONFIG_POSTGRES = "config:postgres",
|
|
23
|
+
CONFIG_AWS_SECRETS = "config:aws_secrets:premium",
|
|
24
|
+
CONFIG_IOREDIS = "config:ioredis:premium",
|
|
25
|
+
CONFIG_MONGO = "config:mongo:premium",
|
|
26
|
+
CONFIG_VAULT = "config:vault:premium",
|
|
27
|
+
CONFIG_POSTGRES = "config:postgres:premium",
|
|
28
28
|
SWAGGER = "swagger",
|
|
29
29
|
SCALAR = "scalar",
|
|
30
30
|
PRISMA = "prisma",
|
|
@@ -60,6 +60,13 @@ export declare const FrameworksPrompt: {
|
|
|
60
60
|
choices: PlatformType[];
|
|
61
61
|
};
|
|
62
62
|
export declare const FeaturesPrompt: (availableRuntimes: string[], availablePackageManagers: string[]) => ({
|
|
63
|
+
type: string;
|
|
64
|
+
name: string;
|
|
65
|
+
message: string;
|
|
66
|
+
when: (ctx: any) => boolean;
|
|
67
|
+
default?: undefined;
|
|
68
|
+
choices?: undefined;
|
|
69
|
+
} | {
|
|
63
70
|
message: string;
|
|
64
71
|
name: string;
|
|
65
72
|
default: string;
|
|
@@ -71,8 +78,8 @@ export declare const FeaturesPrompt: (availableRuntimes: string[], availablePack
|
|
|
71
78
|
type: string;
|
|
72
79
|
name: string;
|
|
73
80
|
choices: string[];
|
|
74
|
-
default?: undefined;
|
|
75
81
|
when?: undefined;
|
|
82
|
+
default?: undefined;
|
|
76
83
|
} | {
|
|
77
84
|
message: string;
|
|
78
85
|
type: string;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import type { InitOptions } from "../../../interfaces/index.js";
|
|
2
2
|
export declare function getFeaturesPrompt(runtimes: string[], availablePackageManagers: string[], options: Partial<InitOptions>): any[];
|
|
3
|
-
export declare function getFrameworksPrompt(): {
|
|
4
|
-
choices: any[];
|
|
5
|
-
message: string;
|
|
6
|
-
type: string;
|
|
7
|
-
name: string;
|
|
8
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/cli",
|
|
3
3
|
"description": "CLI to bootstrap your Ts.ED project",
|
|
4
|
-
"version": "7.0.0-alpha.
|
|
4
|
+
"version": "7.0.0-alpha.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"source": "./src/index.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@swc-node/register": "^1.10.9",
|
|
49
49
|
"@swc/core": "1.7.26",
|
|
50
50
|
"@swc/helpers": "^0.5.13",
|
|
51
|
-
"@tsed/cli-core": "7.0.0-alpha.
|
|
51
|
+
"@tsed/cli-core": "7.0.0-alpha.4",
|
|
52
52
|
"@tsed/core": ">=8.16.0-rc.1",
|
|
53
53
|
"@tsed/di": ">=8.16.0-rc.1",
|
|
54
54
|
"@tsed/hooks": ">=8.16.0-rc.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"tslib": "^2.7.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@tsed/typescript": "7.0.0-alpha.
|
|
73
|
+
"@tsed/typescript": "7.0.0-alpha.4",
|
|
74
74
|
"@types/change-case": "^2.3.1",
|
|
75
75
|
"@types/consolidate": "0.14.4",
|
|
76
76
|
"cross-env": "7.0.3",
|