@forinda/kickjs-cli 2.2.1 → 2.2.2

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/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs-cli v2.2.1
2
+ * @forinda/kickjs-cli v2.2.2
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -55,7 +55,7 @@ async function fileExists(filePath) {
55
55
  function generatePackageJson(name, template, kickjsVersion) {
56
56
  const baseDeps = {
57
57
  "@forinda/kickjs": kickjsVersion,
58
- "@forinda/kickjs-config": kickjsVersion,
58
+ dotenv: "^17.3.1",
59
59
  express: "^5.1.0",
60
60
  "reflect-metadata": "^0.2.2",
61
61
  zod: "^4.3.6",
@@ -387,7 +387,7 @@ export const modules: AppModuleClass[] = [HelloModule]
387
387
  * Both autocomplete and type-check at compile time.
388
388
  */
389
389
  function generateEnvFile() {
390
- return `import { defineEnv } from '@forinda/kickjs-config'
390
+ return `import { defineEnv } from '@forinda/kickjs/config'
391
391
  import { z } from 'zod'
392
392
 
393
393
  /**
@@ -535,11 +535,7 @@ function generateReadme(name, template, pm) {
535
535
  cqrs: "CQRS + Event-Driven",
536
536
  minimal: "Minimal"
537
537
  };
538
- const packages = [
539
- "@forinda/kickjs",
540
- "@forinda/kickjs-vite",
541
- "@forinda/kickjs-config"
542
- ];
538
+ const packages = ["@forinda/kickjs", "@forinda/kickjs-vite"];
543
539
  if (template !== "minimal") packages.push("@forinda/kickjs-swagger", "@forinda/kickjs-devtools");
544
540
  if (template === "graphql") packages.push("@forinda/kickjs-graphql");
545
541
  if (template === "cqrs") packages.push("@forinda/kickjs-queue", "@forinda/kickjs-ws", "@forinda/kickjs-otel");
@@ -778,7 +774,7 @@ kick add --list # Show all available packages
778
774
  Edit \`.env\` for environment variables. Access them with \`@Value()\` decorator:
779
775
 
780
776
  \`\`\`ts
781
- import { Value } from '@forinda/kickjs-config'
777
+ import { Value } from '@forinda/kickjs'
782
778
 
783
779
  @Service()
784
780
  export class ApiService {
@@ -793,7 +789,7 @@ export class ApiService {
793
789
  Or use \`ConfigService\`:
794
790
 
795
791
  \`\`\`ts
796
- import { ConfigService } from '@forinda/kickjs-config'
792
+ import { ConfigService } from '@forinda/kickjs'
797
793
 
798
794
  @Service()
799
795
  export class AppService {
@@ -6111,9 +6107,9 @@ const PACKAGE_REGISTRY = {
6111
6107
  dev: true
6112
6108
  },
6113
6109
  config: {
6114
- pkg: "@forinda/kickjs-config",
6110
+ pkg: "dotenv",
6115
6111
  peers: [],
6116
- description: "Zod-based env validation"
6112
+ description: "Optional .env file loader (kickjs ConfigService now ships in @forinda/kickjs)"
6117
6113
  },
6118
6114
  cli: {
6119
6115
  pkg: "@forinda/kickjs-cli",
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @forinda/kickjs-cli v2.2.1
2
+ * @forinda/kickjs-cli v2.2.2
3
3
  *
4
4
  * Copyright (c) Felix Orinda
5
5
  *
@@ -1637,7 +1637,7 @@ export const modules: AppModuleClass[] = [HelloModule]
1637
1637
  * Both autocomplete and type-check at compile time.
1638
1638
  */
1639
1639
  function generateEnvFile() {
1640
- return `import { defineEnv } from '@forinda/kickjs-config'
1640
+ return `import { defineEnv } from '@forinda/kickjs/config'
1641
1641
  import { z } from 'zod'
1642
1642
 
1643
1643
  /**
@@ -2577,7 +2577,7 @@ export type ${pascal}DTO = z.infer<typeof ${camel}Schema>
2577
2577
  function generatePackageJson(name, template, kickjsVersion) {
2578
2578
  const baseDeps = {
2579
2579
  "@forinda/kickjs": kickjsVersion,
2580
- "@forinda/kickjs-config": kickjsVersion,
2580
+ dotenv: "^17.3.1",
2581
2581
  express: "^5.1.0",
2582
2582
  "reflect-metadata": "^0.2.2",
2583
2583
  zod: "^4.3.6",
@@ -2799,11 +2799,7 @@ function generateReadme(name, template, pm) {
2799
2799
  cqrs: "CQRS + Event-Driven",
2800
2800
  minimal: "Minimal"
2801
2801
  };
2802
- const packages = [
2803
- "@forinda/kickjs",
2804
- "@forinda/kickjs-vite",
2805
- "@forinda/kickjs-config"
2806
- ];
2802
+ const packages = ["@forinda/kickjs", "@forinda/kickjs-vite"];
2807
2803
  if (template !== "minimal") packages.push("@forinda/kickjs-swagger", "@forinda/kickjs-devtools");
2808
2804
  if (template === "graphql") packages.push("@forinda/kickjs-graphql");
2809
2805
  if (template === "cqrs") packages.push("@forinda/kickjs-queue", "@forinda/kickjs-ws", "@forinda/kickjs-otel");
@@ -3042,7 +3038,7 @@ kick add --list # Show all available packages
3042
3038
  Edit \`.env\` for environment variables. Access them with \`@Value()\` decorator:
3043
3039
 
3044
3040
  \`\`\`ts
3045
- import { Value } from '@forinda/kickjs-config'
3041
+ import { Value } from '@forinda/kickjs'
3046
3042
 
3047
3043
  @Service()
3048
3044
  export class ApiService {
@@ -3057,7 +3053,7 @@ export class ApiService {
3057
3053
  Or use \`ConfigService\`:
3058
3054
 
3059
3055
  \`\`\`ts
3060
- import { ConfigService } from '@forinda/kickjs-config'
3056
+ import { ConfigService } from '@forinda/kickjs'
3061
3057
 
3062
3058
  @Service()
3063
3059
  export class AppService {
@@ -3536,7 +3532,7 @@ async function initProject(options) {
3536
3532
  }
3537
3533
  }
3538
3534
  try {
3539
- const { runTypegen } = await import("./typegen-UejiKdXA.mjs");
3535
+ const { runTypegen } = await import("./typegen-CDS6VbOd.mjs");
3540
3536
  await runTypegen({
3541
3537
  cwd: dir,
3542
3538
  allowDuplicates: true,