@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
@@ -1,5 +0,0 @@
1
- {
2
- "extensions": {
3
- "ts": "@swc-node/register"
4
- }
5
- }
@@ -1,15 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "outDir": "./dist",
6
- "moduleResolution": "node",
7
- "declaration": true,
8
- "noResolve": false,
9
- "preserveConstEnums": true,
10
- "sourceMap": true,
11
- "noEmit": false,
12
- "emitDeclarationOnly": {{#if babel }}true{{else}}false{{/if}},
13
- "inlineSources": true
14
- }
15
- }