@tsed/cli 5.4.3 → 6.0.0-alpha.10

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 (233) hide show
  1. package/lib/esm/Cli.js +5 -19
  2. package/lib/esm/bin/tsed.js +15 -2
  3. package/lib/esm/commands/add/AddCmd.js +1 -5
  4. package/lib/esm/commands/generate/GenerateCmd.js +8 -15
  5. package/lib/esm/commands/generate/ProviderTypes.js +0 -1
  6. package/lib/esm/commands/index.js +3 -4
  7. package/lib/esm/commands/init/InitCmd.js +25 -32
  8. package/lib/esm/commands/init/config/FeaturesPrompt.js +6 -18
  9. package/lib/esm/commands/init/config/InitFileSchema.js +1 -2
  10. package/lib/esm/commands/init/interfaces/InitCmdContext.js +0 -1
  11. package/lib/esm/commands/init/interfaces/InitOptions.js +5 -2
  12. package/lib/esm/commands/init/interfaces/InitPromptAnswers.js +2 -2
  13. package/lib/esm/commands/init/mappers/mapToContext.js +0 -1
  14. package/lib/esm/commands/init/mappers/mapUniqFeatures.js +1 -1
  15. package/lib/esm/commands/init/prompts/getFeaturesPrompt.js +0 -1
  16. package/lib/esm/commands/init/utils/hasFeature.js +0 -1
  17. package/lib/esm/commands/init/utils/isPlatform.js +0 -1
  18. package/lib/esm/commands/run/RunCmd.js +5 -25
  19. package/lib/esm/commands/update/UpdateCmd.js +1 -7
  20. package/lib/esm/constants/index.js +3 -6
  21. package/lib/esm/index.js +8 -9
  22. package/lib/esm/interfaces/ArchitectureConvention.js +0 -1
  23. package/lib/esm/interfaces/PlatformType.js +0 -1
  24. package/lib/esm/interfaces/ProjectConvention.js +0 -1
  25. package/lib/esm/interfaces/index.js +2 -3
  26. package/lib/esm/loaders/alias.hook.js +9 -0
  27. package/lib/esm/pipes/ClassNamePipe.js +3 -6
  28. package/lib/esm/pipes/OutputFilePathPipe.js +1 -5
  29. package/lib/esm/pipes/RoutePipe.js +3 -4
  30. package/lib/esm/pipes/index.js +0 -1
  31. package/lib/esm/platforms/InitPlatformsModule.js +1 -3
  32. package/lib/esm/platforms/supports/InitBasePlatform.js +0 -1
  33. package/lib/esm/platforms/supports/InitExpressPlatform.js +3 -2
  34. package/lib/esm/platforms/supports/InitKoaPlatform.js +3 -2
  35. package/lib/esm/runtimes/RuntimesModule.js +5 -9
  36. package/lib/esm/runtimes/index.js +0 -2
  37. package/lib/esm/runtimes/supports/BabelRuntime.js +14 -5
  38. package/lib/esm/runtimes/supports/BaseRuntime.js +7 -5
  39. package/lib/esm/runtimes/supports/BunRuntime.js +12 -5
  40. package/lib/esm/runtimes/supports/NodeRuntime.js +28 -15
  41. package/lib/esm/runtimes/supports/WebpackRuntime.js +10 -4
  42. package/lib/esm/services/ProvidersInfoService.js +4 -3
  43. package/lib/esm/utils/fillImports.js +7 -8
  44. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  45. package/lib/types/Cli.d.ts +3 -4
  46. package/lib/types/commands/add/AddCmd.d.ts +1 -1
  47. package/lib/types/commands/generate/GenerateCmd.d.ts +7 -6
  48. package/lib/types/commands/index.d.ts +6 -6
  49. package/lib/types/commands/init/InitCmd.d.ts +6 -6
  50. package/lib/types/commands/init/config/FeaturesPrompt.d.ts +1 -2
  51. package/lib/types/commands/init/config/InitFileSchema.d.ts +2 -2
  52. package/lib/types/commands/init/interfaces/InitCmdContext.d.ts +2 -2
  53. package/lib/types/commands/init/interfaces/InitOptions.d.ts +4 -4
  54. package/lib/types/commands/init/interfaces/InitPromptAnswers.d.ts +1 -1
  55. package/lib/types/commands/init/mappers/mapToContext.d.ts +1 -1
  56. package/lib/types/commands/init/mappers/mapUniqFeatures.d.ts +2 -2
  57. package/lib/types/commands/init/prompts/getFeaturesPrompt.d.ts +1 -1
  58. package/lib/types/commands/run/RunCmd.d.ts +1 -2
  59. package/lib/types/commands/update/UpdateCmd.d.ts +1 -1
  60. package/lib/types/constants/index.d.ts +1 -1
  61. package/lib/types/index.d.ts +15 -15
  62. package/lib/types/interfaces/index.d.ts +3 -3
  63. package/lib/types/loaders/alias.hook.d.ts +2 -0
  64. package/lib/types/pipes/ClassNamePipe.d.ts +2 -2
  65. package/lib/types/pipes/OutputFilePathPipe.d.ts +3 -3
  66. package/lib/types/pipes/index.d.ts +3 -3
  67. package/lib/types/platforms/InitPlatformsModule.d.ts +1 -1
  68. package/lib/types/platforms/supports/InitExpressPlatform.d.ts +1 -1
  69. package/lib/types/platforms/supports/InitKoaPlatform.d.ts +1 -1
  70. package/lib/types/runtimes/RuntimesModule.d.ts +1 -1
  71. package/lib/types/runtimes/index.d.ts +6 -7
  72. package/lib/types/runtimes/supports/BabelRuntime.d.ts +4 -1
  73. package/lib/types/runtimes/supports/BaseRuntime.d.ts +1 -0
  74. package/lib/types/runtimes/supports/BunRuntime.d.ts +2 -1
  75. package/lib/types/runtimes/supports/NodeRuntime.d.ts +6 -4
  76. package/lib/types/runtimes/supports/WebpackRuntime.d.ts +3 -1
  77. package/package.json +52 -49
  78. package/templates/init/{.barrelsby.json.hbs → .barrels.json.hbs} +3 -3
  79. package/templates/init/.dockerignore.hbs +1 -0
  80. package/templates/init/.swcrc.hbs +1 -1
  81. package/templates/init/README.md.hbs +6 -6
  82. package/templates/init/docker/bun/Dockerfile.hbs +2 -2
  83. package/templates/init/docker/npm/Dockerfile.hbs +5 -5
  84. package/templates/init/docker/pnpm/Dockerfile.hbs +5 -5
  85. package/templates/init/docker/yarn/Dockerfile.hbs +5 -5
  86. package/templates/init/docker/yarn_berry/Dockerfile.hbs +5 -5
  87. package/templates/init/nodemon.json.hbs +9 -0
  88. package/templates/init/pm2/bun/processes.config.cjs.hbs +23 -0
  89. package/templates/init/{processes.config.js.hbs → pm2/node-compiled/processes.config.cjs.hbs} +3 -4
  90. package/templates/init/pm2/node-loader/processes.config.cjs.hbs +24 -0
  91. package/templates/init/src/bin/index.ts.hbs +2 -2
  92. package/templates/init/src/config/index.ts.hbs +4 -4
  93. package/templates/init/src/index.ts.hbs +1 -1
  94. package/templates/init/tsconfig.base.json.hbs +29 -0
  95. package/templates/init/tsconfig.json.hbs +11 -35
  96. package/templates/init/tsconfig.node.json.hbs +20 -0
  97. package/templates/init/tsconfig.spec.json.hbs +24 -0
  98. package/lib/cjs/Cli.js +0 -75
  99. package/lib/cjs/Cli.js.map +0 -1
  100. package/lib/cjs/bin/tsed.js +0 -9
  101. package/lib/cjs/bin/tsed.js.map +0 -1
  102. package/lib/cjs/commands/add/AddCmd.js +0 -68
  103. package/lib/cjs/commands/add/AddCmd.js.map +0 -1
  104. package/lib/cjs/commands/generate/GenerateCmd.js +0 -263
  105. package/lib/cjs/commands/generate/GenerateCmd.js.map +0 -1
  106. package/lib/cjs/commands/generate/ProviderTypes.js +0 -107
  107. package/lib/cjs/commands/generate/ProviderTypes.js.map +0 -1
  108. package/lib/cjs/commands/index.js +0 -9
  109. package/lib/cjs/commands/index.js.map +0 -1
  110. package/lib/cjs/commands/init/InitCmd.js +0 -439
  111. package/lib/cjs/commands/init/InitCmd.js.map +0 -1
  112. package/lib/cjs/commands/init/config/FeaturesPrompt.js +0 -398
  113. package/lib/cjs/commands/init/config/FeaturesPrompt.js.map +0 -1
  114. package/lib/cjs/commands/init/config/InitFileSchema.js +0 -53
  115. package/lib/cjs/commands/init/config/InitFileSchema.js.map +0 -1
  116. package/lib/cjs/commands/init/interfaces/InitCmdContext.js +0 -3
  117. package/lib/cjs/commands/init/interfaces/InitCmdContext.js.map +0 -1
  118. package/lib/cjs/commands/init/interfaces/InitOptions.js +0 -3
  119. package/lib/cjs/commands/init/interfaces/InitOptions.js.map +0 -1
  120. package/lib/cjs/commands/init/interfaces/InitPromptAnswers.js +0 -3
  121. package/lib/cjs/commands/init/interfaces/InitPromptAnswers.js.map +0 -1
  122. package/lib/cjs/commands/init/mappers/mapToContext.js +0 -16
  123. package/lib/cjs/commands/init/mappers/mapToContext.js.map +0 -1
  124. package/lib/cjs/commands/init/mappers/mapUniqFeatures.js +0 -18
  125. package/lib/cjs/commands/init/mappers/mapUniqFeatures.js.map +0 -1
  126. package/lib/cjs/commands/init/prompts/getFeaturesPrompt.js +0 -25
  127. package/lib/cjs/commands/init/prompts/getFeaturesPrompt.js.map +0 -1
  128. package/lib/cjs/commands/init/utils/hasFeature.js +0 -13
  129. package/lib/cjs/commands/init/utils/hasFeature.js.map +0 -1
  130. package/lib/cjs/commands/init/utils/isPlatform.js +0 -8
  131. package/lib/cjs/commands/init/utils/isPlatform.js.map +0 -1
  132. package/lib/cjs/commands/run/RunCmd.js +0 -71
  133. package/lib/cjs/commands/run/RunCmd.js.map +0 -1
  134. package/lib/cjs/commands/update/UpdateCmd.js +0 -128
  135. package/lib/cjs/commands/update/UpdateCmd.js.map +0 -1
  136. package/lib/cjs/constants/index.js +0 -16
  137. package/lib/cjs/constants/index.js.map +0 -1
  138. package/lib/cjs/index.js +0 -19
  139. package/lib/cjs/index.js.map +0 -1
  140. package/lib/cjs/interfaces/ArchitectureConvention.js +0 -9
  141. package/lib/cjs/interfaces/ArchitectureConvention.js.map +0 -1
  142. package/lib/cjs/interfaces/PlatformType.js +0 -9
  143. package/lib/cjs/interfaces/PlatformType.js.map +0 -1
  144. package/lib/cjs/interfaces/ProjectConvention.js +0 -9
  145. package/lib/cjs/interfaces/ProjectConvention.js.map +0 -1
  146. package/lib/cjs/interfaces/index.js +0 -7
  147. package/lib/cjs/interfaces/index.js.map +0 -1
  148. package/lib/cjs/package.json +0 -3
  149. package/lib/cjs/pipes/ClassNamePipe.js +0 -46
  150. package/lib/cjs/pipes/ClassNamePipe.js.map +0 -1
  151. package/lib/cjs/pipes/OutputFilePathPipe.js +0 -41
  152. package/lib/cjs/pipes/OutputFilePathPipe.js.map +0 -1
  153. package/lib/cjs/pipes/RoutePipe.js +0 -26
  154. package/lib/cjs/pipes/RoutePipe.js.map +0 -1
  155. package/lib/cjs/pipes/index.js +0 -7
  156. package/lib/cjs/pipes/index.js.map +0 -1
  157. package/lib/cjs/platforms/InitPlatformsModule.js +0 -26
  158. package/lib/cjs/platforms/InitPlatformsModule.js.map +0 -1
  159. package/lib/cjs/platforms/supports/InitBasePlatform.js +0 -3
  160. package/lib/cjs/platforms/supports/InitBasePlatform.js.map +0 -1
  161. package/lib/cjs/platforms/supports/InitExpressPlatform.js +0 -35
  162. package/lib/cjs/platforms/supports/InitExpressPlatform.js.map +0 -1
  163. package/lib/cjs/platforms/supports/InitKoaPlatform.js +0 -39
  164. package/lib/cjs/platforms/supports/InitKoaPlatform.js.map +0 -1
  165. package/lib/cjs/runtimes/RuntimesModule.js +0 -67
  166. package/lib/cjs/runtimes/RuntimesModule.js.map +0 -1
  167. package/lib/cjs/runtimes/index.js +0 -11
  168. package/lib/cjs/runtimes/index.js.map +0 -1
  169. package/lib/cjs/runtimes/supports/BabelRuntime.js +0 -41
  170. package/lib/cjs/runtimes/supports/BabelRuntime.js.map +0 -1
  171. package/lib/cjs/runtimes/supports/BaseRuntime.js +0 -45
  172. package/lib/cjs/runtimes/supports/BaseRuntime.js.map +0 -1
  173. package/lib/cjs/runtimes/supports/BunRuntime.js +0 -27
  174. package/lib/cjs/runtimes/supports/BunRuntime.js.map +0 -1
  175. package/lib/cjs/runtimes/supports/NodeRuntime.js +0 -33
  176. package/lib/cjs/runtimes/supports/NodeRuntime.js.map +0 -1
  177. package/lib/cjs/runtimes/supports/SWCRuntime.js +0 -35
  178. package/lib/cjs/runtimes/supports/SWCRuntime.js.map +0 -1
  179. package/lib/cjs/runtimes/supports/WebpackRuntime.js +0 -35
  180. package/lib/cjs/runtimes/supports/WebpackRuntime.js.map +0 -1
  181. package/lib/cjs/services/ProvidersInfoService.js +0 -48
  182. package/lib/cjs/services/ProvidersInfoService.js.map +0 -1
  183. package/lib/cjs/utils/fillImports.js +0 -40
  184. package/lib/cjs/utils/fillImports.js.map +0 -1
  185. package/lib/esm/Cli.js.map +0 -1
  186. package/lib/esm/bin/tsed.js.map +0 -1
  187. package/lib/esm/commands/add/AddCmd.js.map +0 -1
  188. package/lib/esm/commands/generate/GenerateCmd.js.map +0 -1
  189. package/lib/esm/commands/generate/ProviderTypes.js.map +0 -1
  190. package/lib/esm/commands/index.js.map +0 -1
  191. package/lib/esm/commands/init/InitCmd.js.map +0 -1
  192. package/lib/esm/commands/init/config/FeaturesPrompt.js.map +0 -1
  193. package/lib/esm/commands/init/config/InitFileSchema.js.map +0 -1
  194. package/lib/esm/commands/init/interfaces/InitCmdContext.js.map +0 -1
  195. package/lib/esm/commands/init/interfaces/InitOptions.js.map +0 -1
  196. package/lib/esm/commands/init/interfaces/InitPromptAnswers.js.map +0 -1
  197. package/lib/esm/commands/init/mappers/mapToContext.js.map +0 -1
  198. package/lib/esm/commands/init/mappers/mapUniqFeatures.js.map +0 -1
  199. package/lib/esm/commands/init/prompts/getFeaturesPrompt.js.map +0 -1
  200. package/lib/esm/commands/init/utils/hasFeature.js.map +0 -1
  201. package/lib/esm/commands/init/utils/isPlatform.js.map +0 -1
  202. package/lib/esm/commands/run/RunCmd.js.map +0 -1
  203. package/lib/esm/commands/update/UpdateCmd.js.map +0 -1
  204. package/lib/esm/constants/index.js.map +0 -1
  205. package/lib/esm/index.js.map +0 -1
  206. package/lib/esm/interfaces/ArchitectureConvention.js.map +0 -1
  207. package/lib/esm/interfaces/PlatformType.js.map +0 -1
  208. package/lib/esm/interfaces/ProjectConvention.js.map +0 -1
  209. package/lib/esm/interfaces/index.js.map +0 -1
  210. package/lib/esm/package.json +0 -3
  211. package/lib/esm/pipes/ClassNamePipe.js.map +0 -1
  212. package/lib/esm/pipes/OutputFilePathPipe.js.map +0 -1
  213. package/lib/esm/pipes/RoutePipe.js.map +0 -1
  214. package/lib/esm/pipes/index.js.map +0 -1
  215. package/lib/esm/platforms/InitPlatformsModule.js.map +0 -1
  216. package/lib/esm/platforms/supports/InitBasePlatform.js.map +0 -1
  217. package/lib/esm/platforms/supports/InitExpressPlatform.js.map +0 -1
  218. package/lib/esm/platforms/supports/InitKoaPlatform.js.map +0 -1
  219. package/lib/esm/runtimes/RuntimesModule.js.map +0 -1
  220. package/lib/esm/runtimes/index.js.map +0 -1
  221. package/lib/esm/runtimes/supports/BabelRuntime.js.map +0 -1
  222. package/lib/esm/runtimes/supports/BaseRuntime.js.map +0 -1
  223. package/lib/esm/runtimes/supports/BunRuntime.js.map +0 -1
  224. package/lib/esm/runtimes/supports/NodeRuntime.js.map +0 -1
  225. package/lib/esm/runtimes/supports/SWCRuntime.js +0 -32
  226. package/lib/esm/runtimes/supports/SWCRuntime.js.map +0 -1
  227. package/lib/esm/runtimes/supports/WebpackRuntime.js.map +0 -1
  228. package/lib/esm/services/ProvidersInfoService.js.map +0 -1
  229. package/lib/esm/utils/fillImports.js.map +0 -1
  230. package/lib/tsconfig.tsbuildinfo +0 -1
  231. package/lib/types/runtimes/supports/SWCRuntime.d.ts +0 -9
  232. package/templates/init/.node-dev.json.hbs +0 -5
  233. package/templates/init/tsconfig.compile.json.hbs +0 -15
package/lib/esm/Cli.js CHANGED
@@ -1,13 +1,10 @@
1
1
  import { CliCore } from "@tsed/cli-core";
2
2
  import chalk from "chalk";
3
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
- // @ts-ignore
5
- import alias from "module-alias";
6
- import { PKG, TEMPLATE_DIR } from "./constants.js";
7
- import commands from "./commands.js";
8
- import { ArchitectureConvention, ProjectConvention } from "./interfaces.js";
3
+ import commands from "./commands/index.js";
4
+ import { PKG, TEMPLATE_DIR } from "./constants/index.js";
5
+ import { ArchitectureConvention, ProjectConvention } from "./interfaces/index.js";
9
6
  export class Cli extends CliCore {
10
- static defaults = {
7
+ static { this.defaults = {
11
8
  name: "tsed",
12
9
  pkg: PKG,
13
10
  templateDir: TEMPLATE_DIR,
@@ -25,7 +22,7 @@ export class Cli extends CliCore {
25
22
  logger: {
26
23
  level: "info"
27
24
  }
28
- };
25
+ }; }
29
26
  static checkPackage(pkg) {
30
27
  if (!pkg) {
31
28
  console.log(chalk.red(`settings.pkg is required. Require the package.json of your CLI when you bootstrap the CLI.`));
@@ -53,18 +50,7 @@ export class Cli extends CliCore {
53
50
  };
54
51
  const { pkg } = opts;
55
52
  this.checkPrecondition(opts);
56
- this.createAliases();
57
53
  await this.updateNotifier(pkg);
58
54
  return super.bootstrap(opts, Cli);
59
55
  }
60
- static createAliases() {
61
- alias.addAliases({
62
- "@tsed/core": import.meta.resolve("@tsed/core"),
63
- "@tsed/di": import.meta.resolve("@tsed/di"),
64
- "@tsed/schema": import.meta.resolve("@tsed/schema"),
65
- "@tsed/cli-core": import.meta.resolve("@tsed/cli-core"),
66
- "@tsed/cli": import.meta.resolve("@tsed/cli")
67
- });
68
- }
69
56
  }
70
- //# sourceMappingURL=Cli.js.map
@@ -1,7 +1,20 @@
1
1
  #!/usr/bin/env node
2
- import { Cli } from "../Cli.js";
2
+ import { register } from "node:module";
3
+ import { fileURLToPath, pathToFileURL } from "node:url";
4
+ const EXT = process.env.CLI_MODE === "ts" ? "ts" : "js";
5
+ register(pathToFileURL(`${import.meta.dirname}/../loaders/alias.hook.${EXT}`), {
6
+ parentURL: import.meta.dirname,
7
+ data: {
8
+ "@tsed/core": fileURLToPath(import.meta.resolve("@tsed/core")),
9
+ "@tsed/di": fileURLToPath(import.meta.resolve("@tsed/di")),
10
+ "@tsed/schema": fileURLToPath(import.meta.resolve("@tsed/schema")),
11
+ "@tsed/cli-core": fileURLToPath(import.meta.resolve("@tsed/cli-core")),
12
+ "@tsed/cli": fileURLToPath(import.meta.resolve("@tsed/cli"))
13
+ },
14
+ transferList: []
15
+ });
16
+ const { Cli } = await import("../Cli.js");
3
17
  Cli.bootstrap({}).catch((error) => {
4
18
  console.error(error);
5
19
  process.exit(-1);
6
20
  });
7
- //# sourceMappingURL=tsed.js.map
@@ -1,10 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
- import { Inject } from "@tsed/di";
3
2
  import { CliPlugins, Command, createSubTasks, PackageManagersModule, ProjectPackageJson } from "@tsed/cli-core";
3
+ import { Inject } from "@tsed/di";
4
4
  let AddCmd = class AddCmd {
5
- cliPlugins;
6
- packageJson;
7
- packageManagers;
8
5
  $prompt(initialOptions) {
9
6
  return [
10
7
  {
@@ -62,4 +59,3 @@ AddCmd = __decorate([
62
59
  })
63
60
  ], AddCmd);
64
61
  export { AddCmd };
65
- //# sourceMappingURL=AddCmd.js.map
@@ -1,17 +1,17 @@
1
1
  var GenerateCmd_1;
2
2
  import { __decorate, __metadata } from "tslib";
3
3
  import { Command, Inject, ProjectPackageJson, SrcRendererService } from "@tsed/cli-core";
4
- import { paramCase, pascalCase } from "change-case";
4
+ import { normalizePath } from "@tsed/normalize-path";
5
+ import { kebabCase, pascalCase } from "change-case";
6
+ import { globbySync } from "globby";
5
7
  import { basename, dirname, join } from "path";
6
- import globby from "globby";
7
- import normalizePath from "normalize-path";
8
+ import { ProjectConvention } from "../../interfaces/ProjectConvention.js";
8
9
  import { ClassNamePipe } from "../../pipes/ClassNamePipe.js";
9
10
  import { OutputFilePathPipe } from "../../pipes/OutputFilePathPipe.js";
10
11
  import { RoutePipe } from "../../pipes/RoutePipe.js";
11
12
  import { ProvidersInfoService } from "../../services/ProvidersInfoService.js";
12
- import { PROVIDER_TYPES } from "./ProviderTypes.js";
13
- import { ProjectConvention } from "../../interfaces/ProjectConvention.js";
14
13
  import { fillImports } from "../../utils/fillImports.js";
14
+ import { PROVIDER_TYPES } from "./ProviderTypes.js";
15
15
  const DECORATOR_TYPES = [
16
16
  { name: "Class decorator", value: "class" },
17
17
  { name: "Ts.ED middleware and its decorator", value: "middleware" },
@@ -32,12 +32,6 @@ const searchFactory = (list) => {
32
32
  };
33
33
  };
34
34
  let GenerateCmd = GenerateCmd_1 = class GenerateCmd {
35
- providersList;
36
- classNamePipe;
37
- outputFilePathPipe;
38
- routePipe;
39
- srcRenderService;
40
- projectPackageJson;
41
35
  constructor(providersList) {
42
36
  this.providersList = providersList;
43
37
  PROVIDER_TYPES.forEach((info) => {
@@ -137,7 +131,7 @@ let GenerateCmd = GenerateCmd_1 = class GenerateCmd {
137
131
  type = "prisma.service";
138
132
  }
139
133
  const symbolName = this.classNamePipe.transform({ name, type, format: ProjectConvention.DEFAULT });
140
- const symbolParamName = paramCase(symbolName);
134
+ const symbolParamName = kebabCase(symbolName);
141
135
  return fillImports({
142
136
  ...ctx,
143
137
  type,
@@ -174,7 +168,7 @@ let GenerateCmd = GenerateCmd_1 = class GenerateCmd {
174
168
  return this.srcRenderService.update("bin/index.ts", [
175
169
  {
176
170
  type: "import",
177
- content: `import {${ctx.symbolName}} from "./${basename(symbolPath)}";`
171
+ content: `import {${ctx.symbolName}} from "./${basename(symbolPath)}.js";`
178
172
  },
179
173
  {
180
174
  type: "insert-after",
@@ -189,7 +183,7 @@ let GenerateCmd = GenerateCmd_1 = class GenerateCmd {
189
183
  return [];
190
184
  }
191
185
  getDirectories(dir) {
192
- const directories = globby.sync("**/*", {
186
+ const directories = globbySync("**/*", {
193
187
  cwd: join(this.srcRenderService.rootDir, dir),
194
188
  ignore: ["__*"]
195
189
  });
@@ -257,4 +251,3 @@ GenerateCmd = GenerateCmd_1 = __decorate([
257
251
  __metadata("design:paramtypes", [ProvidersInfoService])
258
252
  ], GenerateCmd);
259
253
  export { GenerateCmd };
260
- //# sourceMappingURL=GenerateCmd.js.map
@@ -101,4 +101,3 @@ export const PROVIDER_TYPES = [
101
101
  model: "{{symbolName}}.repository"
102
102
  }
103
103
  ];
104
- //# sourceMappingURL=ProviderTypes.js.map
@@ -1,7 +1,6 @@
1
- import { InitCmd } from "./init/InitCmd.js";
2
- import { GenerateCmd } from "./generate/GenerateCmd.js";
3
- import { UpdateCmd } from "./update/UpdateCmd.js";
4
1
  import { AddCmd } from "./add/AddCmd.js";
2
+ import { GenerateCmd } from "./generate/GenerateCmd.js";
3
+ import { InitCmd } from "./init/InitCmd.js";
5
4
  import { RunCmd } from "./run/RunCmd.js";
5
+ import { UpdateCmd } from "./update/UpdateCmd.js";
6
6
  export default [AddCmd, InitCmd, GenerateCmd, UpdateCmd, RunCmd];
7
- //# sourceMappingURL=index.js.map
@@ -1,35 +1,22 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { CliExeca, CliFs, CliLoadFile, CliPackageJson, CliPlugins, CliService, Command, Configuration, createSubTasks, createTasksRunner, Inject, PackageManager, PackageManagersModule, ProjectPackageJson, RootRendererService } from "@tsed/cli-core";
3
- import { paramCase, pascalCase } from "change-case";
3
+ import { kebabCase, pascalCase } from "change-case";
4
4
  import { basename, join } from "path";
5
- import { DEFAULT_TSED_TAGS } from "../../constants.js";
5
+ import { DEFAULT_TSED_TAGS } from "../../constants/index.js";
6
6
  import { ArchitectureConvention } from "../../interfaces/ArchitectureConvention.js";
7
+ import { PlatformType } from "../../interfaces/index.js";
7
8
  import { ProjectConvention } from "../../interfaces/ProjectConvention.js";
8
9
  import { OutputFilePathPipe } from "../../pipes/OutputFilePathPipe.js";
10
+ import { InitPlatformsModule } from "../../platforms/InitPlatformsModule.js";
11
+ import { RuntimesModule } from "../../runtimes/RuntimesModule.js";
12
+ import { BunRuntime } from "../../runtimes/supports/BunRuntime.js";
13
+ import { NodeRuntime } from "../../runtimes/supports/NodeRuntime.js";
14
+ import { fillImports } from "../../utils/fillImports.js";
15
+ import { FeaturesMap, FeatureType } from "./config/FeaturesPrompt.js";
9
16
  import { InitFileSchema } from "./config/InitFileSchema.js";
10
17
  import { mapToContext } from "./mappers/mapToContext.js";
11
- import { FeaturesMap, FeatureType } from "./config/FeaturesPrompt.js";
12
18
  import { getFeaturesPrompt } from "./prompts/getFeaturesPrompt.js";
13
- import { PlatformType } from "../../interfaces.js";
14
- import { fillImports } from "../../utils/fillImports.js";
15
- import { RuntimesModule } from "../../runtimes/RuntimesModule.js";
16
- import { NodeRuntime } from "../../runtimes/supports/NodeRuntime.js";
17
- import { BunRuntime } from "../../runtimes/supports/BunRuntime.js";
18
- import { InitPlatformsModule } from "../../platforms/InitPlatformsModule.js";
19
19
  let InitCmd = class InitCmd {
20
- configuration;
21
- cliPlugins;
22
- packageJson;
23
- packageManagers;
24
- runtimes;
25
- platforms;
26
- cliPackageJson;
27
- cliService;
28
- cliLoadFile;
29
- rootRenderer;
30
- outputFilePathPipe;
31
- execa;
32
- fs;
33
20
  checkPrecondition(ctx) {
34
21
  const isValid = (types, value) => (value ? Object.values(types).includes(value) : true);
35
22
  if (!isValid(PlatformType, ctx.platform)) {
@@ -79,10 +66,10 @@ let InitCmd = class InitCmd {
79
66
  type: "input",
80
67
  name: "projectName",
81
68
  message: "What is your project name",
82
- default: paramCase(initialOptions.root),
69
+ default: kebabCase(initialOptions.root),
83
70
  when: initialOptions.root !== ".",
84
71
  transformer(input) {
85
- return paramCase(input);
72
+ return kebabCase(input);
86
73
  }
87
74
  },
88
75
  ...getFeaturesPrompt(runtimes, packageManagers.filter((o) => o !== "bun"), initialOptions)
@@ -197,7 +184,7 @@ let InitCmd = class InitCmd {
197
184
  ];
198
185
  }
199
186
  resolveRootDir(ctx) {
200
- const rootDirName = paramCase(ctx.projectName || basename(this.packageJson.dir));
187
+ const rootDirName = kebabCase(ctx.projectName || basename(this.packageJson.dir));
201
188
  if (this.packageJson.dir.endsWith(rootDirName)) {
202
189
  ctx.projectName = ctx.projectName || rootDirName;
203
190
  ctx.root = ".";
@@ -232,8 +219,8 @@ let InitCmd = class InitCmd {
232
219
  "@tsed/logger": "latest",
233
220
  "@tsed/logger-file": "latest",
234
221
  "@tsed/engines": "latest",
222
+ "@tsed/barrels": "latest",
235
223
  ajv: "latest",
236
- barrelsby: "latest",
237
224
  "cross-env": "latest",
238
225
  dotenv: "latest",
239
226
  "dotenv-expand": "latest",
@@ -247,7 +234,6 @@ let InitCmd = class InitCmd {
247
234
  "@types/node": "latest",
248
235
  "@types/multer": "latest",
249
236
  tslib: "latest",
250
- typescript: "latest",
251
237
  ...this.runtimes.get().devDependencies(),
252
238
  ...this.platforms.get(ctx.platform).devDependencies(ctx)
253
239
  }, ctx);
@@ -281,14 +267,20 @@ let InitCmd = class InitCmd {
281
267
  ctx = {
282
268
  ...ctx,
283
269
  node: runtime instanceof NodeRuntime,
284
- bun: runtime instanceof BunRuntime
270
+ bun: runtime instanceof BunRuntime,
271
+ compiled: runtime instanceof NodeRuntime && runtime.isCompiled()
285
272
  };
273
+ const pm2 = ctx.bun ? "bun" : ctx.compiled ? "node-compiled" : "node-loader";
286
274
  return this.rootRenderer.renderAll([
287
275
  ...runtime.files(),
288
276
  "/init/.dockerignore.hbs",
289
277
  "/init/.gitignore.hbs",
290
- "/init/.barrelsby.json.hbs",
291
- "/init/processes.config.js.hbs",
278
+ "/init/.barrels.json.hbs",
279
+ {
280
+ path: `/init/pm2/${pm2}/processes.config.cjs.hbs`,
281
+ output: `processes.config.cjs`,
282
+ replaces: [`pm2/${pm2}`]
283
+ },
292
284
  "/init/docker-compose.yml.hbs",
293
285
  {
294
286
  path: `/init/docker/${packageManager.name}/Dockerfile.hbs`,
@@ -296,8 +288,10 @@ let InitCmd = class InitCmd {
296
288
  replaces: [`docker/${packageManager.name}`]
297
289
  },
298
290
  "/init/README.md.hbs",
299
- "/init/tsconfig.compile.json.hbs",
300
291
  "/init/tsconfig.json.hbs",
292
+ "/init/tsconfig.base.json.hbs",
293
+ "/init/tsconfig.node.json.hbs",
294
+ ctx.testing && "/init/tsconfig.spec.json.hbs",
301
295
  "/init/src/index.ts.hbs",
302
296
  "/init/src/config/envs/index.ts.hbs",
303
297
  "/init/src/config/logger/index.ts.hbs",
@@ -433,4 +427,3 @@ InitCmd = __decorate([
433
427
  })
434
428
  ], InitCmd);
435
429
  export { InitCmd };
436
- //# sourceMappingURL=InitCmd.js.map
@@ -1,6 +1,6 @@
1
- import { isPlatform } from "../utils/isPlatform.js";
1
+ import { ArchitectureConvention, PlatformType, ProjectConvention } from "../../../interfaces/index.js";
2
2
  import { hasFeature, hasValue } from "../utils/hasFeature.js";
3
- import { ArchitectureConvention, PlatformType, ProjectConvention } from "../../../interfaces.js";
3
+ import { isPlatform } from "../utils/isPlatform.js";
4
4
  export var FeatureType;
5
5
  (function (FeatureType) {
6
6
  FeatureType["GRAPHQL"] = "graphql";
@@ -33,7 +33,6 @@ export var FeatureType;
33
33
  FeatureType["TESTING"] = "testing";
34
34
  FeatureType["JEST"] = "jest";
35
35
  FeatureType["VITEST"] = "vitest";
36
- FeatureType["MOCHA"] = "mocha";
37
36
  FeatureType["LINTER"] = "linter";
38
37
  FeatureType["ESLINT"] = "eslint";
39
38
  FeatureType["LINT_STAGED"] = "lintstaged";
@@ -222,12 +221,6 @@ export const FeaturesMap = {
222
221
  "@tsed/cli-plugin-jest": "{{cliVersion}}"
223
222
  }
224
223
  },
225
- [FeatureType.MOCHA]: {
226
- name: "Mocha + Chai + Sinon",
227
- devDependencies: {
228
- "@tsed/cli-plugin-mocha": "{{cliVersion}}"
229
- }
230
- },
231
224
  [FeatureType.ESLINT]: {
232
225
  name: "EsLint",
233
226
  checked: true,
@@ -242,7 +235,7 @@ export const FeaturesMap = {
242
235
  name: "Lint on commit"
243
236
  },
244
237
  node: {
245
- name: "Node.js",
238
+ name: "Node.js + SWC",
246
239
  checked: true
247
240
  },
248
241
  babel: {
@@ -253,12 +246,8 @@ export const FeaturesMap = {
253
246
  name: "Node.js + Webpack",
254
247
  checked: false
255
248
  },
256
- swc: {
257
- name: "Node.js + SWC",
258
- checked: false
259
- },
260
249
  bun: {
261
- name: "Bun.js (experimental)",
250
+ name: "Bun.js",
262
251
  checked: false
263
252
  },
264
253
  yarn: {
@@ -274,7 +263,7 @@ export const FeaturesMap = {
274
263
  checked: false
275
264
  },
276
265
  pnpm: {
277
- name: "PNPM (experimental)",
266
+ name: "PNPM",
278
267
  checked: false
279
268
  }
280
269
  };
@@ -354,7 +343,7 @@ export const FeaturesPrompt = (availableRuntimes, availablePackageManagers) => [
354
343
  type: "list",
355
344
  name: "featuresTesting",
356
345
  when: hasFeature(FeatureType.TESTING),
357
- choices: [FeatureType.VITEST, FeatureType.JEST, FeatureType.MOCHA]
346
+ choices: [FeatureType.VITEST, FeatureType.JEST]
358
347
  },
359
348
  {
360
349
  message: "Choose linter tools framework",
@@ -391,4 +380,3 @@ export const FeaturesPrompt = (availableRuntimes, availablePackageManagers) => [
391
380
  choices: availablePackageManagers
392
381
  }
393
382
  ];
394
- //# sourceMappingURL=FeaturesPrompt.js.map
@@ -1,5 +1,5 @@
1
1
  import { PackageManager } from "@tsed/cli-core";
2
- import { ArchitectureConvention, PlatformType, ProjectConvention } from "../../../interfaces.js";
2
+ import { ArchitectureConvention, PlatformType, ProjectConvention } from "../../../interfaces/index.js";
3
3
  import { FeatureType } from "./FeaturesPrompt.js";
4
4
  export const InitFileSchema = {
5
5
  type: "object",
@@ -47,4 +47,3 @@ export const InitFileSchema = {
47
47
  required: ["features"],
48
48
  additionalProperties: true
49
49
  };
50
- //# sourceMappingURL=InitFileSchema.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=InitCmdContext.js.map
@@ -1,2 +1,5 @@
1
- export {};
2
- //# sourceMappingURL=InitOptions.js.map
1
+ import { PackageManager } from "@tsed/cli-core";
2
+ import { ArchitectureConvention } from "../../../interfaces/ArchitectureConvention.js";
3
+ import { PlatformType } from "../../../interfaces/PlatformType.js";
4
+ import { ProjectConvention } from "../../../interfaces/ProjectConvention.js";
5
+ import { FeatureType } from "../config/FeaturesPrompt.js";
@@ -1,2 +1,2 @@
1
- export {};
2
- //# sourceMappingURL=InitPromptAnswers.js.map
1
+ import { PackageManager } from "@tsed/cli-core";
2
+ import { ArchitectureConvention, PlatformType, ProjectConvention } from "../../../interfaces/index.js";
@@ -9,4 +9,3 @@ export function mapToContext(options) {
9
9
  });
10
10
  return options;
11
11
  }
12
- //# sourceMappingURL=mapToContext.js.map
@@ -1,3 +1,4 @@
1
+ import { FeatureType } from "../config/FeaturesPrompt.js";
1
2
  export function mapUniqFeatures(answers) {
2
3
  const features = [];
3
4
  Object.entries(answers)
@@ -11,4 +12,3 @@ export function mapUniqFeatures(answers) {
11
12
  features: [...new Set(features).values()]
12
13
  };
13
14
  }
14
- //# sourceMappingURL=mapUniqFeatures.js.map
@@ -18,4 +18,3 @@ export function getFeaturesPrompt(runtimes, availablePackageManagers, options) {
18
18
  });
19
19
  });
20
20
  }
21
- //# sourceMappingURL=getFeaturesPrompt.js.map
@@ -5,4 +5,3 @@ export function hasValue(expression, value) {
5
5
  export function hasFeature(feature) {
6
6
  return (ctx) => !!ctx.features.find((item) => item === feature);
7
7
  }
8
- //# sourceMappingURL=hasFeature.js.map
@@ -1,4 +1,3 @@
1
1
  export function isPlatform(...types) {
2
2
  return (ctx) => [types].includes(ctx.platform);
3
3
  }
4
- //# sourceMappingURL=isPlatform.js.map
@@ -1,35 +1,16 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
- import { CliFs, CliRunScript, Command, ProjectPackageJson, normalizePath } from "@tsed/cli-core";
2
+ import { CliFs, CliRunScript, Command, normalizePath, ProjectPackageJson } from "@tsed/cli-core";
3
3
  import { Inject } from "@tsed/di";
4
- import { join } from "path";
5
4
  let RunCmd = class RunCmd {
6
- fs;
7
- projectPackageJson;
8
- runScript;
9
5
  async $exec(ctx) {
10
- const cmd = ctx.production ? "node" : "ts-node";
11
- const args = ctx.production ? [] : ["-r", "tsconfig-paths/register"];
12
- const path = normalizePath(ctx.production ? join(await this.getCompilePath(), "bin/index.js") : "src/bin/index.ts");
13
- const env = {
14
- ...process.env
15
- };
16
- if (ctx.production) {
17
- env.NODE_ENV = "production";
18
- }
6
+ const cmd = "node";
7
+ const args = ["--import", "@swc-node/register/register-esm"];
8
+ const path = normalizePath("src/bin/index.ts");
19
9
  await this.runScript.run(cmd, [...args, path, ctx.command, ...ctx.rawArgs], {
20
- env
10
+ env: process.env
21
11
  });
22
12
  return [];
23
13
  }
24
- async getCompilePath() {
25
- const { dir } = this.projectPackageJson;
26
- const tsConfigPath = join(dir, "tsconfig.compile.json");
27
- if (this.fs.exists(tsConfigPath)) {
28
- const content = JSON.parse(await this.fs.readFile(tsConfigPath, "utf8"));
29
- return content.compilerOptions.outDir;
30
- }
31
- return "./dist";
32
- }
33
14
  };
34
15
  __decorate([
35
16
  Inject(),
@@ -65,4 +46,3 @@ RunCmd = __decorate([
65
46
  })
66
47
  ], RunCmd);
67
48
  export { RunCmd };
68
- //# sourceMappingURL=RunCmd.js.map
@@ -2,7 +2,7 @@ import { __decorate, __metadata } from "tslib";
2
2
  import { CliPackageJson, Command, createSubTasks, Inject, NpmRegistryClient, PackageManagersModule, ProjectPackageJson } from "@tsed/cli-core";
3
3
  import { getValue } from "@tsed/core";
4
4
  import semver from "semver";
5
- import { IGNORE_TAGS, IGNORE_VERSIONS, MINIMAL_TSED_VERSION } from "../../constants.js";
5
+ import { IGNORE_TAGS, IGNORE_VERSIONS, MINIMAL_TSED_VERSION } from "../../constants/index.js";
6
6
  function cleanVersion(version = "") {
7
7
  return version.replace(/[\^~>=]/gi, "");
8
8
  }
@@ -15,11 +15,6 @@ function shouldUpdate(pkg) {
15
15
  return pkg.includes("@tsed") && !pkg.includes("@tsed/cli") && !pkg.includes("@tsed/logger");
16
16
  }
17
17
  let UpdateCmd = class UpdateCmd {
18
- npmRegistryClient;
19
- projectPackage;
20
- packageManagers;
21
- cliPackage;
22
- versions;
23
18
  async $prompt(initialOptions) {
24
19
  const versions = await this.getAvailableVersions();
25
20
  return [
@@ -122,4 +117,3 @@ UpdateCmd = __decorate([
122
117
  })
123
118
  ], UpdateCmd);
124
119
  export { UpdateCmd };
125
- //# sourceMappingURL=UpdateCmd.js.map
@@ -1,9 +1,7 @@
1
1
  import { dirname, join } from "path";
2
- import readPkgUp from "read-pkg-up";
3
- import { fileURLToPath } from "node:url";
4
-
5
- const { path, packageJson } = readPkgUp.sync({
6
- cwd: join(fileURLToPath(import.meta.url), "..", "..")
2
+ import { readPackageUpSync } from "read-pkg-up";
3
+ const { path, packageJson } = readPackageUpSync({
4
+ cwd: join(import.meta.dirname, "..", "..")
7
5
  });
8
6
  export const PKG = packageJson;
9
7
  export const MINIMAL_TSED_VERSION = "7";
@@ -11,4 +9,3 @@ export const DEFAULT_TSED_TAGS = "latest";
11
9
  export const IGNORE_VERSIONS = ["6.0.0"];
12
10
  export const IGNORE_TAGS = false; // /alpha|beta/
13
11
  export const TEMPLATE_DIR = join(dirname(path), "templates");
14
- //# sourceMappingURL=index.js.map
package/lib/esm/index.js CHANGED
@@ -1,16 +1,15 @@
1
+ export * from "./Cli.js";
1
2
  export * from "./commands/add/AddCmd.js";
3
+ export * from "./commands/generate/GenerateCmd.js";
4
+ export * from "./commands/init/config/FeaturesPrompt.js";
5
+ export * from "./commands/init/config/FeaturesPrompt.js";
2
6
  export * from "./commands/init/InitCmd.js";
3
7
  export * from "./commands/init/interfaces/InitCmdContext.js";
4
8
  export * from "./commands/init/interfaces/InitOptions.js";
5
- export * from "./commands/init/config/FeaturesPrompt.js";
6
- export * from "./commands/init/config/FeaturesPrompt.js";
7
- export * from "./commands/generate/GenerateCmd.js";
8
- export * from "./commands/update/UpdateCmd.js";
9
9
  export * from "./commands/init/prompts/getFeaturesPrompt.js";
10
+ export * from "./commands/update/UpdateCmd.js";
11
+ export * from "./constants/index.js";
12
+ export * from "./interfaces/index.js";
13
+ export * from "./pipes/index.js";
10
14
  export * from "./runtimes/index.js";
11
- export * from "./interfaces.js";
12
15
  export * from "./services/ProvidersInfoService.js";
13
- export * from "./pipes.js";
14
- export * from "./constants.js";
15
- export * from "./Cli.js";
16
- //# sourceMappingURL=index.js.map
@@ -3,4 +3,3 @@ export var ArchitectureConvention;
3
3
  ArchitectureConvention["DEFAULT"] = "arc_default";
4
4
  ArchitectureConvention["FEATURE"] = "feature";
5
5
  })(ArchitectureConvention || (ArchitectureConvention = {}));
6
- //# sourceMappingURL=ArchitectureConvention.js.map
@@ -3,4 +3,3 @@ export var PlatformType;
3
3
  PlatformType["EXPRESS"] = "express";
4
4
  PlatformType["KOA"] = "koa";
5
5
  })(PlatformType || (PlatformType = {}));
6
- //# sourceMappingURL=PlatformType.js.map
@@ -3,4 +3,3 @@ export var ProjectConvention;
3
3
  ProjectConvention["DEFAULT"] = "conv_default";
4
4
  ProjectConvention["ANGULAR"] = "angular";
5
5
  })(ProjectConvention || (ProjectConvention = {}));
6
- //# sourceMappingURL=ProjectConvention.js.map
@@ -1,4 +1,3 @@
1
- export * from "./ProjectConvention.js";
2
- export * from "./PlatformType.js";
3
1
  export * from "./ArchitectureConvention.js";
4
- //# sourceMappingURL=index.js.map
2
+ export * from "./PlatformType.js";
3
+ export * from "./ProjectConvention.js";
@@ -0,0 +1,9 @@
1
+ import generateAliasesResolver from "esm-module-alias";
2
+ let resolver = null;
3
+ export async function initialize(aliases) {
4
+ // Receives data from `register`.
5
+ resolver = generateAliasesResolver(aliases);
6
+ }
7
+ export function resolve(specifier, context, nextResolve) {
8
+ return resolver(specifier, context, nextResolve);
9
+ }
@@ -1,18 +1,16 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Injectable, ProjectPackageJson } from "@tsed/cli-core";
3
3
  import { Inject } from "@tsed/di";
4
- import { paramCase, pascalCase } from "change-case";
4
+ import { kebabCase, pascalCase } from "change-case";
5
5
  import { basename } from "path";
6
- import { ProvidersInfoService } from "../services/ProvidersInfoService.js";
7
6
  import { ProjectConvention } from "../interfaces/ProjectConvention.js";
7
+ import { ProvidersInfoService } from "../services/ProvidersInfoService.js";
8
8
  let ClassNamePipe = class ClassNamePipe {
9
- providers;
10
- projectPackageJson;
11
9
  transform(options) {
12
10
  const format = options.format || this.projectPackageJson.preferences.convention || ProjectConvention.DEFAULT;
13
11
  const meta = this.providers.get(options.type)?.model || "{{symbolName}}.{{symbolType}}?";
14
12
  const type = options.type.split(":").at(-1);
15
- const symbolName = paramCase(basename(options.name)).replace(`-${type}`, "");
13
+ const symbolName = kebabCase(basename(options.name)).replace(`-${type}`, "");
16
14
  const names = meta.split(".").reduce((acc, key) => {
17
15
  return key
18
16
  .replace(/{{symbolName}}/gi, symbolName)
@@ -40,4 +38,3 @@ ClassNamePipe = __decorate([
40
38
  Injectable()
41
39
  ], ClassNamePipe);
42
40
  export { ClassNamePipe };
43
- //# sourceMappingURL=ClassNamePipe.js.map
@@ -2,13 +2,10 @@ import { __decorate, __metadata } from "tslib";
2
2
  import { Injectable, ProjectPackageJson } from "@tsed/cli-core";
3
3
  import { Inject } from "@tsed/di";
4
4
  import { dirname, join } from "path";
5
+ import { ArchitectureConvention, ProjectConvention } from "../interfaces/index.js";
5
6
  import { ProvidersInfoService } from "../services/ProvidersInfoService.js";
6
7
  import { ClassNamePipe } from "./ClassNamePipe.js";
7
- import { ProjectConvention, ArchitectureConvention } from "../interfaces.js";
8
8
  let OutputFilePathPipe = class OutputFilePathPipe {
9
- classNamePipe;
10
- providers;
11
- projectPackageJson;
12
9
  constructor(classNamePipe) {
13
10
  this.classNamePipe = classNamePipe;
14
11
  }
@@ -35,4 +32,3 @@ OutputFilePathPipe = __decorate([
35
32
  __metadata("design:paramtypes", [ClassNamePipe])
36
33
  ], OutputFilePathPipe);
37
34
  export { OutputFilePathPipe };
38
- //# sourceMappingURL=OutputFilePathPipe.js.map