@tsed/cli-core 7.0.0-alpha.9 → 7.0.0-beta.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 (57) hide show
  1. package/lib/esm/CliCore.js +37 -37
  2. package/lib/esm/decorators/command.js +1 -1
  3. package/lib/esm/decorators/index.js +0 -4
  4. package/lib/esm/fn/command.js +31 -3
  5. package/lib/esm/interfaces/ProjectPreferences.js +1 -0
  6. package/lib/esm/interfaces/index.js +1 -1
  7. package/lib/esm/packageManagers/PackageManagersModule.js +11 -19
  8. package/lib/esm/packageManagers/index.js +1 -0
  9. package/lib/esm/packageManagers/supports/BaseManager.js +2 -6
  10. package/lib/esm/packageManagers/supports/YarnBerryManager.js +4 -1
  11. package/lib/esm/services/CliFs.js +3 -1
  12. package/lib/esm/services/CliHttpClient.js +3 -2
  13. package/lib/esm/services/CliHttpLogClient.js +1 -1
  14. package/lib/esm/services/CliLoadFile.js +5 -18
  15. package/lib/esm/services/CliPlugins.js +2 -3
  16. package/lib/esm/services/CliService.js +59 -71
  17. package/lib/esm/services/ProjectPackageJson.js +17 -4
  18. package/lib/esm/utils/createInjector.js +1 -1
  19. package/lib/esm/utils/getCommandMetadata.js +34 -7
  20. package/lib/esm/utils/index.js +1 -0
  21. package/lib/esm/utils/loadPlugins.js +5 -18
  22. package/lib/esm/utils/validate.js +23 -0
  23. package/lib/types/CliCore.d.ts +4 -9
  24. package/lib/types/decorators/command.d.ts +2 -2
  25. package/lib/types/decorators/index.d.ts +0 -4
  26. package/lib/types/fn/command.d.ts +58 -3
  27. package/lib/types/interfaces/CommandMetadata.d.ts +17 -15
  28. package/lib/types/interfaces/{CommandParameters.d.ts → CommandOptions.d.ts} +20 -3
  29. package/lib/types/interfaces/CommandProvider.d.ts +0 -10
  30. package/lib/types/interfaces/ProjectPreferences.d.ts +2 -1
  31. package/lib/types/interfaces/index.d.ts +12 -4
  32. package/lib/types/packageManagers/PackageManagersModule.d.ts +1 -2
  33. package/lib/types/packageManagers/index.d.ts +1 -0
  34. package/lib/types/services/CliHttpLogClient.d.ts +1 -1
  35. package/lib/types/services/CliLoadFile.d.ts +2 -4
  36. package/lib/types/services/CliPlugins.d.ts +0 -1
  37. package/lib/types/services/CliService.d.ts +4 -10
  38. package/lib/types/services/ProjectPackageJson.d.ts +9 -0
  39. package/lib/types/utils/index.d.ts +1 -0
  40. package/lib/types/utils/mapCommanderArgs.d.ts +1 -1
  41. package/lib/types/utils/resolveConfiguration.d.ts +1 -1
  42. package/lib/types/utils/validate.d.ts +14 -0
  43. package/package.json +3 -3
  44. package/readme.md +1 -1
  45. package/lib/esm/decorators/on.js +0 -8
  46. package/lib/esm/decorators/onAdd.js +0 -5
  47. package/lib/esm/decorators/onExec.js +0 -5
  48. package/lib/esm/decorators/onPostInstall.js +0 -5
  49. package/lib/esm/decorators/onPrompt.js +0 -5
  50. package/lib/esm/domains/CommandStoreKeys.js +0 -8
  51. package/lib/types/decorators/on.d.ts +0 -1
  52. package/lib/types/decorators/onAdd.d.ts +0 -1
  53. package/lib/types/decorators/onExec.d.ts +0 -1
  54. package/lib/types/decorators/onPostInstall.d.ts +0 -1
  55. package/lib/types/decorators/onPrompt.d.ts +0 -1
  56. package/lib/types/domains/CommandStoreKeys.d.ts +0 -7
  57. /package/lib/esm/interfaces/{CommandParameters.js → CommandOptions.js} +0 -0
@@ -1,5 +0,0 @@
1
- import { CommandStoreKeys } from "../domains/CommandStoreKeys.js";
2
- import { On } from "./on.js";
3
- export function OnExec(cmdName) {
4
- return On(CommandStoreKeys.EXEC_HOOKS, cmdName);
5
- }
@@ -1,5 +0,0 @@
1
- import { CommandStoreKeys } from "../domains/CommandStoreKeys.js";
2
- import { On } from "./on.js";
3
- export function OnPostInstall(cmdName) {
4
- return On(CommandStoreKeys.POST_INSTALL_HOOKS, cmdName);
5
- }
@@ -1,5 +0,0 @@
1
- import { CommandStoreKeys } from "../domains/CommandStoreKeys.js";
2
- import { On } from "./on.js";
3
- export function OnPrompt(cmdName) {
4
- return On(CommandStoreKeys.PROMPT_HOOKS, cmdName);
5
- }
@@ -1,8 +0,0 @@
1
- export var CommandStoreKeys;
2
- (function (CommandStoreKeys) {
3
- CommandStoreKeys["COMMAND"] = "command";
4
- CommandStoreKeys["ADD"] = "$onAdd";
5
- CommandStoreKeys["EXEC_HOOKS"] = "$onExec";
6
- CommandStoreKeys["POST_INSTALL_HOOKS"] = "$onPostInstall";
7
- CommandStoreKeys["PROMPT_HOOKS"] = "$onPrompt";
8
- })(CommandStoreKeys || (CommandStoreKeys = {}));
@@ -1 +0,0 @@
1
- export declare function On(hookName: string, name: string): MethodDecorator;
@@ -1 +0,0 @@
1
- export declare function OnAdd(cliPlugin: string): MethodDecorator;
@@ -1 +0,0 @@
1
- export declare function OnExec(cmdName: string): MethodDecorator;
@@ -1 +0,0 @@
1
- export declare function OnPostInstall(cmdName: string): MethodDecorator;
@@ -1 +0,0 @@
1
- export declare function OnPrompt(cmdName: string): MethodDecorator;
@@ -1,7 +0,0 @@
1
- export declare enum CommandStoreKeys {
2
- COMMAND = "command",
3
- ADD = "$onAdd",
4
- EXEC_HOOKS = "$onExec",
5
- POST_INSTALL_HOOKS = "$onPostInstall",
6
- PROMPT_HOOKS = "$onPrompt"
7
- }