@tsed/cli 4.5.1 → 4.5.3

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.
Files changed (85) hide show
  1. package/lib/cjs/Cli.js +1 -1
  2. package/lib/cjs/Cli.js.map +1 -1
  3. package/lib/cjs/bin/tsed.js.map +1 -1
  4. package/lib/cjs/commands/add/AddCmd.js +2 -2
  5. package/lib/cjs/commands/add/AddCmd.js.map +1 -1
  6. package/lib/cjs/commands/generate/GenerateCmd.js +2 -2
  7. package/lib/cjs/commands/generate/GenerateCmd.js.map +1 -1
  8. package/lib/cjs/commands/generate/ProviderTypes.js.map +1 -1
  9. package/lib/cjs/commands/index.js.map +1 -1
  10. package/lib/cjs/commands/init/InitCmd.js +5 -2
  11. package/lib/cjs/commands/init/InitCmd.js.map +1 -1
  12. package/lib/cjs/commands/init/config/FeaturesPrompt.js.map +1 -1
  13. package/lib/cjs/commands/init/config/InitFileSchema.js.map +1 -1
  14. package/lib/cjs/commands/init/interfaces/InitCmdContext.js.map +1 -1
  15. package/lib/cjs/commands/init/interfaces/InitOptions.js.map +1 -1
  16. package/lib/cjs/commands/init/interfaces/InitPromptAnswers.js.map +1 -1
  17. package/lib/cjs/commands/init/mappers/mapToContext.js.map +1 -1
  18. package/lib/cjs/commands/init/mappers/mapUniqFeatures.js.map +1 -1
  19. package/lib/cjs/commands/init/prompts/getFeaturesPrompt.js.map +1 -1
  20. package/lib/cjs/commands/init/utils/hasFeature.js.map +1 -1
  21. package/lib/cjs/commands/init/utils/isPlatform.js.map +1 -1
  22. package/lib/cjs/commands/run/RunCmd.js.map +1 -1
  23. package/lib/cjs/commands/update/UpdateCmd.js.map +1 -1
  24. package/lib/cjs/constants/index.js +1 -3
  25. package/lib/cjs/constants/index.js.map +1 -1
  26. package/lib/cjs/index.js.map +1 -1
  27. package/lib/cjs/interfaces/ArchitectureConvention.js +1 -1
  28. package/lib/cjs/interfaces/ArchitectureConvention.js.map +1 -1
  29. package/lib/cjs/interfaces/PlatformType.js.map +1 -1
  30. package/lib/cjs/interfaces/ProjectConvention.js +1 -1
  31. package/lib/cjs/interfaces/ProjectConvention.js.map +1 -1
  32. package/lib/cjs/interfaces/index.js.map +1 -1
  33. package/lib/cjs/pipes/ClassNamePipe.js.map +1 -1
  34. package/lib/cjs/pipes/OutputFilePathPipe.js.map +1 -1
  35. package/lib/cjs/pipes/RoutePipe.js.map +1 -1
  36. package/lib/cjs/pipes/index.js.map +1 -1
  37. package/lib/cjs/services/ProvidersInfoService.js.map +1 -1
  38. package/lib/cjs/utils/fillImports.js.map +1 -1
  39. package/lib/esm/Cli.js +1 -1
  40. package/lib/esm/Cli.js.map +1 -1
  41. package/lib/esm/bin/tsed.js.map +1 -1
  42. package/lib/esm/commands/add/AddCmd.js +2 -2
  43. package/lib/esm/commands/add/AddCmd.js.map +1 -1
  44. package/lib/esm/commands/generate/GenerateCmd.js +2 -2
  45. package/lib/esm/commands/generate/GenerateCmd.js.map +1 -1
  46. package/lib/esm/commands/generate/ProviderTypes.js.map +1 -1
  47. package/lib/esm/commands/index.js.map +1 -1
  48. package/lib/esm/commands/init/InitCmd.js +5 -2
  49. package/lib/esm/commands/init/InitCmd.js.map +1 -1
  50. package/lib/esm/commands/init/config/FeaturesPrompt.js.map +1 -1
  51. package/lib/esm/commands/init/config/InitFileSchema.js.map +1 -1
  52. package/lib/esm/commands/init/interfaces/InitCmdContext.js.map +1 -1
  53. package/lib/esm/commands/init/interfaces/InitOptions.js.map +1 -1
  54. package/lib/esm/commands/init/interfaces/InitPromptAnswers.js.map +1 -1
  55. package/lib/esm/commands/init/mappers/mapToContext.js.map +1 -1
  56. package/lib/esm/commands/init/mappers/mapUniqFeatures.js.map +1 -1
  57. package/lib/esm/commands/init/prompts/getFeaturesPrompt.js.map +1 -1
  58. package/lib/esm/commands/init/utils/hasFeature.js.map +1 -1
  59. package/lib/esm/commands/init/utils/isPlatform.js.map +1 -1
  60. package/lib/esm/commands/run/RunCmd.js.map +1 -1
  61. package/lib/esm/commands/update/UpdateCmd.js.map +1 -1
  62. package/lib/esm/constants/index.js +4 -4
  63. package/lib/esm/constants/index.js.map +1 -1
  64. package/lib/esm/index.js.map +1 -1
  65. package/lib/esm/interfaces/ArchitectureConvention.js +1 -1
  66. package/lib/esm/interfaces/ArchitectureConvention.js.map +1 -1
  67. package/lib/esm/interfaces/PlatformType.js.map +1 -1
  68. package/lib/esm/interfaces/ProjectConvention.js +1 -1
  69. package/lib/esm/interfaces/ProjectConvention.js.map +1 -1
  70. package/lib/esm/interfaces/index.js.map +1 -1
  71. package/lib/esm/pipes/ClassNamePipe.js.map +1 -1
  72. package/lib/esm/pipes/OutputFilePathPipe.js.map +1 -1
  73. package/lib/esm/pipes/RoutePipe.js.map +1 -1
  74. package/lib/esm/pipes/index.js.map +1 -1
  75. package/lib/esm/services/ProvidersInfoService.js.map +1 -1
  76. package/lib/esm/utils/fillImports.js.map +1 -1
  77. package/lib/tsconfig.esm.tsbuildinfo +1 -0
  78. package/lib/tsconfig.tsbuildinfo +1 -0
  79. package/lib/types/commands/add/AddCmd.d.ts +2 -2
  80. package/lib/types/commands/generate/GenerateCmd.d.ts +4 -4
  81. package/lib/types/commands/init/InitCmd.d.ts +2 -2
  82. package/lib/types/interfaces/ArchitectureConvention.d.ts +1 -1
  83. package/lib/types/interfaces/ProjectConvention.d.ts +1 -1
  84. package/package.json +15 -7
  85. package/templates/init/src/index.ts.hbs +1 -1
@@ -6,11 +6,11 @@ export declare class AddCmd implements CommandProvider {
6
6
  cliPlugins: CliPlugins;
7
7
  packageJson: ProjectPackageJson;
8
8
  $prompt(initialOptions: any): QuestionOptions;
9
- $exec(ctx: AddCmdOptions): Promise<({
9
+ $exec(ctx: AddCmdOptions): ({
10
10
  title: string;
11
11
  task: (ctx: any, task: import("listr2").ListrTaskWrapper<any, any>) => Promise<import("listr2").Listr<any, any, any>>;
12
12
  } | {
13
13
  title: string;
14
14
  task: () => Promise<void>;
15
- })[]>;
15
+ })[];
16
16
  }
@@ -31,7 +31,7 @@ export declare class GenerateCmd implements CommandProvider {
31
31
  message: string;
32
32
  default: string | undefined;
33
33
  when: () => boolean;
34
- source: (state: any, keyword: string) => Promise<any>;
34
+ source: (state: any, keyword: string) => any;
35
35
  choices?: undefined;
36
36
  } | {
37
37
  type: string;
@@ -74,7 +74,7 @@ export declare class GenerateCmd implements CommandProvider {
74
74
  name: string;
75
75
  message: (state: any) => string;
76
76
  when(state: any): boolean;
77
- source: (state: any, keyword: string) => Promise<any>;
77
+ source: (state: any, keyword: string) => any;
78
78
  default?: undefined;
79
79
  choices?: undefined;
80
80
  } | {
@@ -90,13 +90,13 @@ export declare class GenerateCmd implements CommandProvider {
90
90
  source?: undefined;
91
91
  })[];
92
92
  $mapContext(ctx: Partial<GenerateCmdContext>): GenerateCmdContext;
93
- $exec(ctx: GenerateCmdContext): Promise<({
93
+ $exec(ctx: GenerateCmdContext): ({
94
94
  title: string;
95
95
  task: () => Promise<void>;
96
96
  } | {
97
97
  title: string;
98
98
  skip(): boolean;
99
99
  task: () => Promise<void>;
100
- })[]>;
100
+ })[];
101
101
  getDirectories(dir: string): string[];
102
102
  }
@@ -22,10 +22,10 @@ export declare class InitCmd implements CommandProvider {
22
22
  title: string;
23
23
  task: (ctx: any, task: import("listr2").ListrTaskWrapper<any, any>) => Promise<import("listr2").Listr<any, any, any>>;
24
24
  }[]>;
25
- $afterPostInstall(): Promise<{
25
+ $afterPostInstall(): {
26
26
  title: string;
27
27
  task: () => import("rxjs").Observable<unknown>;
28
- }[]>;
28
+ }[];
29
29
  resolveRootDir(ctx: Partial<InitCmdContext>): void;
30
30
  addScripts(ctx: InitCmdContext): void;
31
31
  addDependencies(ctx: InitCmdContext): void;
@@ -1,5 +1,5 @@
1
1
  export declare enum ArchitectureConvention {
2
- DEFAULT = "default",
2
+ DEFAULT = "arc_default",
3
3
  FEATURE = "feature"
4
4
  }
5
5
  declare global {
@@ -1,5 +1,5 @@
1
1
  export declare enum ProjectConvention {
2
- DEFAULT = "default",
2
+ DEFAULT = "conv_default",
3
3
  ANGULAR = "angular"
4
4
  }
5
5
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/cli",
3
- "version": "4.5.1",
3
+ "version": "4.5.3",
4
4
  "source": "./src/index.ts",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -12,9 +12,8 @@
12
12
  "default": "./lib/esm/index.js"
13
13
  },
14
14
  "scripts": {
15
- "build": "yarn run build:esm && yarn run build:cjs",
16
- "build:cjs": "tsc --build tsconfig.compile.json",
17
- "build:esm": "tsc --build tsconfig.compile.esm.json",
15
+ "build": "yarn build:ts",
16
+ "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json && cp scripts/index.esm.js lib/esm/constants/index.js",
18
17
  "start:help": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts -h",
19
18
  "start:help:g": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts generate -h",
20
19
  "start:help:i": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts init -h",
@@ -31,7 +30,10 @@
31
30
  "start:g:model": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts g model -r ./.tmp/init/awesome",
32
31
  "start:g:prisma": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts g service -r ./.tmp/init/awesome prisma",
33
32
  "start:generate:run": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts generate -r ./.tmp/init/awesome",
34
- "start:typeorm:run": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts typeorm entity:create -r ./.tmp/init/awesome --name User"
33
+ "start:typeorm:run": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/bin/tsed.ts typeorm entity:create -r ./.tmp/init/awesome --name User",
34
+ "lint": "eslint '**/*.{ts,js}'",
35
+ "lint:fix": "eslint '**/*.{ts,js}' --fix",
36
+ "test": "cross-env NODE_ENV=test yarn jest --max-workers=2 --passWithNoTests && jest-coverage-thresholds-bumper"
35
37
  },
36
38
  "bin": {
37
39
  "tsed": "lib/cjs/bin/tsed.js"
@@ -59,7 +61,7 @@
59
61
  "node": ">=14"
60
62
  },
61
63
  "dependencies": {
62
- "@tsed/cli-core": "4.5.1",
64
+ "@tsed/cli-core": "4.5.3",
63
65
  "@tsed/core": ">=7.14.2",
64
66
  "@tsed/di": ">=7.14.2",
65
67
  "@tsed/logger": ">=6.2.1",
@@ -76,7 +78,13 @@
76
78
  "tslib": "2.3.1"
77
79
  },
78
80
  "devDependencies": {
79
- "@types/change-case": "^2.3.1"
81
+ "@tsed/eslint": "4.5.3",
82
+ "@tsed/jest-config": "4.5.3",
83
+ "@tsed/typescript": "4.5.3",
84
+ "@types/change-case": "^2.3.1",
85
+ "cross-env": "7.0.3",
86
+ "eslint": "8.22.0",
87
+ "jest": "29.5.0"
80
88
  },
81
89
  "peerDependencies": {},
82
90
  "repository": "https://github.com/tsedio/tsed-cli",
@@ -1,6 +1,6 @@
1
1
  import {$log} from "@tsed/common";
2
2
  import { {{platformSymbol}} } from "@tsed/platform-{{platform}}";
3
- import {Server} from "./Server";
3
+ import {Server} from "./{{entryServer}}";
4
4
 
5
5
  async function bootstrap() {
6
6
  try {