@nest-arch/tui 0.4.3 → 0.4.5

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.
@@ -26,16 +26,14 @@ export const env = createEnv({
26
26
 
27
27
  server: {
28
28
  CORS_ORIGIN: z.string().default("*"),
29
- NODE_ENV: z
30
- .enum(["development", "production", "test"])
31
- .default("development"),
32
- PORT: z
33
- .string()
34
- .transform(Number)
35
- .default(3000),
36
- TRUSTED_PROXY_IPS: z.string().default("{{#each trustedProxyIps}}{{#unless @first}},{{/unless}}{{this}}{{/each}}"),
37
- {{#if (includes microservices "redis")}}
38
- REDIS_URL: z.url().default("redis://127.0.0.1:6379"),
29
+ {{#if (includes microservices "grpc")}}
30
+ GRPC_URL: z.string().default("0.0.0.0:5000"),
31
+ {{/if}}
32
+ {{#if (includes microservices "kafka")}}
33
+ KAFKA_BROKER: z.string().default("127.0.0.1:9092"),
34
+ {{/if}}
35
+ {{#if (or (includes microservices "redis") (includes microservices "mqtt") (includes microservices "nats") (includes microservices "rabbitmq") (includes microservices "kafka") (includes microservices "grpc"))}}
36
+ MICROSERVICE_PORT: z.string().transform(Number).default(3001),
39
37
  {{/if}}
40
38
  {{#if (includes microservices "mqtt")}}
41
39
  MQTT_URL: z.url().default("mqtt://127.0.0.1:1883"),
@@ -43,16 +41,20 @@ export const env = createEnv({
43
41
  {{#if (includes microservices "nats")}}
44
42
  NATS_URL: z.url().default("nats://127.0.0.1:4222"),
45
43
  {{/if}}
44
+ NODE_ENV: z
45
+ .enum(["development", "production", "test"])
46
+ .default("development"),
47
+ PORT: z
48
+ .string()
49
+ .transform(Number)
50
+ .default(3000),
46
51
  {{#if (includes microservices "rabbitmq")}}
47
52
  RABBITMQ_URL: z.url().default("amqp://127.0.0.1:5672"),
48
53
  {{/if}}
49
- {{#if (includes microservices "kafka")}}
50
- KAFKA_BROKER: z.string().default("127.0.0.1:9092"),
51
- {{/if}}
52
- {{#if (includes microservices "grpc")}}
53
- GRPC_URL: z.string().default("0.0.0.0:5000"),
54
+ {{#if (includes microservices "redis")}}
55
+ REDIS_URL: z.url().default("redis://127.0.0.1:6379"),
54
56
  {{/if}}
55
- MICROSERVICE_PORT: z.string().transform(Number).default(3001),
57
+ TRUSTED_PROXY_IPS: z.string().default("{{#each trustedProxyIps}}{{#unless @first}},{{/unless}}{{this}}{{/each}}"),
56
58
  {{#if hasPostgres}}
57
59
  POSTGRES_URL: z.url(),
58
60
  {{/if}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-arch/tui",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "private": false,
5
5
  "description": "Interactive terminal UI for generating NestJS projects",
6
6
  "keywords": [