@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.
@@ -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
- };
@@ -1,2 +1,3 @@
1
1
  export declare function hasValue(expression: string, value: string | string[]): (ctx: any) => boolean;
2
2
  export declare function hasFeature(feature: string): (ctx: any) => boolean;
3
+ export declare function hasValuePremium(): (ctx: any) => boolean;
@@ -19,6 +19,7 @@ export interface RenderDataContext extends CommandData, TsED.RenderDataContext {
19
19
  runtime: RuntimeTypes;
20
20
  features?: FeatureType[];
21
21
  root?: string;
22
+ premium?: boolean;
22
23
  projectName?: string;
23
24
  tsedVersion?: string;
24
25
  cliVersion?: string;
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.3",
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.3",
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.3",
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",