@decaf-ts/utils 1.3.2 → 1.5.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.
Files changed (88) hide show
  1. package/README.md +1 -1
  2. package/dist/utils.cjs +1 -1
  3. package/dist/utils.cjs.map +1 -1
  4. package/dist/utils.js +1 -1
  5. package/dist/utils.js.map +1 -1
  6. package/lib/cjs/bin/modules.cjs +14 -0
  7. package/lib/cjs/bin/modules.cjs.map +1 -0
  8. package/lib/cjs/bin/npm-link.cjs +14 -0
  9. package/lib/cjs/bin/npm-link.cjs.map +1 -0
  10. package/lib/cjs/bin/npm-token.cjs +14 -0
  11. package/lib/cjs/bin/npm-token.cjs.map +1 -0
  12. package/lib/cjs/bin/run-all.cjs +14 -0
  13. package/lib/cjs/bin/run-all.cjs.map +1 -0
  14. package/lib/cjs/cli/commands/help.cjs +29 -0
  15. package/lib/cjs/cli/commands/help.cjs.map +1 -0
  16. package/lib/cjs/cli/commands/index.cjs +5 -0
  17. package/lib/cjs/cli/commands/index.cjs.map +1 -1
  18. package/lib/cjs/cli/commands/modules.cjs +80 -0
  19. package/lib/cjs/cli/commands/modules.cjs.map +1 -0
  20. package/lib/cjs/cli/commands/npm-link.cjs +196 -0
  21. package/lib/cjs/cli/commands/npm-link.cjs.map +1 -0
  22. package/lib/cjs/cli/commands/npm-token.cjs +87 -0
  23. package/lib/cjs/cli/commands/npm-token.cjs.map +1 -0
  24. package/lib/cjs/cli/commands/release-chain.cjs +82 -0
  25. package/lib/cjs/cli/commands/release-chain.cjs.map +1 -1
  26. package/lib/cjs/cli/commands/run-all.cjs +78 -0
  27. package/lib/cjs/cli/commands/run-all.cjs.map +1 -0
  28. package/lib/cjs/cli/commands/tag-release-shell.cjs +229 -0
  29. package/lib/cjs/cli/commands/tag-release-shell.cjs.map +1 -0
  30. package/lib/cjs/cli/commands/tag-release.cjs +33 -2
  31. package/lib/cjs/cli/commands/tag-release.cjs.map +1 -1
  32. package/lib/cjs/index.cjs +1 -1
  33. package/lib/esm/bin/modules.js +10 -0
  34. package/lib/esm/bin/modules.js.map +1 -0
  35. package/lib/esm/bin/npm-link.js +10 -0
  36. package/lib/esm/bin/npm-link.js.map +1 -0
  37. package/lib/esm/bin/npm-token.js +10 -0
  38. package/lib/esm/bin/npm-token.js.map +1 -0
  39. package/lib/esm/bin/run-all.js +10 -0
  40. package/lib/esm/bin/run-all.js.map +1 -0
  41. package/lib/esm/cli/commands/help.js +25 -0
  42. package/lib/esm/cli/commands/help.js.map +1 -0
  43. package/lib/esm/cli/commands/index.js +5 -0
  44. package/lib/esm/cli/commands/index.js.map +1 -1
  45. package/lib/esm/cli/commands/modules.js +70 -0
  46. package/lib/esm/cli/commands/modules.js.map +1 -0
  47. package/lib/esm/cli/commands/npm-link.js +188 -0
  48. package/lib/esm/cli/commands/npm-link.js.map +1 -0
  49. package/lib/esm/cli/commands/npm-token.js +79 -0
  50. package/lib/esm/cli/commands/npm-token.js.map +1 -0
  51. package/lib/esm/cli/commands/release-chain.js +82 -0
  52. package/lib/esm/cli/commands/release-chain.js.map +1 -1
  53. package/lib/esm/cli/commands/run-all.js +70 -0
  54. package/lib/esm/cli/commands/run-all.js.map +1 -0
  55. package/lib/esm/cli/commands/tag-release-shell.js +221 -0
  56. package/lib/esm/cli/commands/tag-release-shell.js.map +1 -0
  57. package/lib/esm/cli/commands/tag-release.js +33 -2
  58. package/lib/esm/cli/commands/tag-release.js.map +1 -1
  59. package/lib/esm/index.js +1 -1
  60. package/lib/types/bin/modules.d.cts +1 -0
  61. package/lib/types/bin/modules.d.mts +1 -0
  62. package/lib/types/bin/npm-link.d.cts +1 -0
  63. package/lib/types/bin/npm-link.d.mts +1 -0
  64. package/lib/types/bin/npm-token.d.cts +1 -0
  65. package/lib/types/bin/npm-token.d.mts +1 -0
  66. package/lib/types/bin/run-all.d.cts +1 -0
  67. package/lib/types/bin/run-all.d.mts +1 -0
  68. package/lib/types/cli/commands/help.d.cts +7 -0
  69. package/lib/types/cli/commands/help.d.mts +7 -0
  70. package/lib/types/cli/commands/index.d.cts +5 -0
  71. package/lib/types/cli/commands/index.d.mts +5 -0
  72. package/lib/types/cli/commands/modules.d.cts +19 -0
  73. package/lib/types/cli/commands/modules.d.mts +19 -0
  74. package/lib/types/cli/commands/npm-link.d.cts +34 -0
  75. package/lib/types/cli/commands/npm-link.d.mts +34 -0
  76. package/lib/types/cli/commands/npm-token.d.cts +23 -0
  77. package/lib/types/cli/commands/npm-token.d.mts +23 -0
  78. package/lib/types/cli/commands/release-chain.d.cts +2 -0
  79. package/lib/types/cli/commands/release-chain.d.mts +2 -0
  80. package/lib/types/cli/commands/run-all.d.cts +22 -0
  81. package/lib/types/cli/commands/run-all.d.mts +22 -0
  82. package/lib/types/cli/commands/tag-release-shell.d.cts +57 -0
  83. package/lib/types/cli/commands/tag-release-shell.d.mts +57 -0
  84. package/lib/types/cli/commands/tag-release.d.cts +1 -0
  85. package/lib/types/cli/commands/tag-release.d.mts +1 -0
  86. package/lib/types/index.d.cts +1 -1
  87. package/lib/types/index.d.mts +1 -1
  88. package/package.json +5 -1
@@ -0,0 +1,57 @@
1
+ import { LoggingConfig } from "@decaf-ts/logging";
2
+ import { Command } from "../command.d.cts";
3
+ import { DefaultCommandValues } from "../constants.d.cts";
4
+ declare const options: {
5
+ public: {
6
+ type: string;
7
+ default: boolean;
8
+ };
9
+ private: {
10
+ type: string;
11
+ default: boolean;
12
+ };
13
+ gitToken: {
14
+ type: string;
15
+ default: string;
16
+ };
17
+ npmToken: {
18
+ type: string;
19
+ default: string;
20
+ };
21
+ gitUser: {
22
+ type: string;
23
+ default: undefined;
24
+ };
25
+ allowFromBranch: {
26
+ type: string;
27
+ default: boolean;
28
+ };
29
+ tag: {
30
+ type: string;
31
+ default: undefined;
32
+ };
33
+ message: {
34
+ type: string;
35
+ default: undefined;
36
+ };
37
+ };
38
+ export declare class TagReleaseCommand extends Command<typeof options, void> {
39
+ constructor();
40
+ private ensureReleaseBranch;
41
+ private prepareTag;
42
+ private prepareMessage;
43
+ private hasToken;
44
+ private readToken;
45
+ protected help(): void;
46
+ protected run(answers: LoggingConfig & typeof DefaultCommandValues & {
47
+ public: unknown;
48
+ private: unknown;
49
+ gitToken: unknown;
50
+ npmToken: unknown;
51
+ gitUser: unknown;
52
+ allowFromBranch: unknown;
53
+ tag: unknown;
54
+ message: unknown;
55
+ }): Promise<void>;
56
+ }
57
+ export {};
@@ -0,0 +1,57 @@
1
+ import { LoggingConfig } from "@decaf-ts/logging";
2
+ import { Command } from "../command.d.mts";
3
+ import { DefaultCommandValues } from "../constants.d.mts";
4
+ declare const options: {
5
+ public: {
6
+ type: string;
7
+ default: boolean;
8
+ };
9
+ private: {
10
+ type: string;
11
+ default: boolean;
12
+ };
13
+ gitToken: {
14
+ type: string;
15
+ default: string;
16
+ };
17
+ npmToken: {
18
+ type: string;
19
+ default: string;
20
+ };
21
+ gitUser: {
22
+ type: string;
23
+ default: undefined;
24
+ };
25
+ allowFromBranch: {
26
+ type: string;
27
+ default: boolean;
28
+ };
29
+ tag: {
30
+ type: string;
31
+ default: undefined;
32
+ };
33
+ message: {
34
+ type: string;
35
+ default: undefined;
36
+ };
37
+ };
38
+ export declare class TagReleaseCommand extends Command<typeof options, void> {
39
+ constructor();
40
+ private ensureReleaseBranch;
41
+ private prepareTag;
42
+ private prepareMessage;
43
+ private hasToken;
44
+ private readToken;
45
+ protected help(): void;
46
+ protected run(answers: LoggingConfig & typeof DefaultCommandValues & {
47
+ public: unknown;
48
+ private: unknown;
49
+ gitToken: unknown;
50
+ npmToken: unknown;
51
+ gitUser: unknown;
52
+ allowFromBranch: unknown;
53
+ tag: unknown;
54
+ message: unknown;
55
+ }): Promise<void>;
56
+ }
57
+ export {};
@@ -68,6 +68,7 @@ export declare class ReleaseScript extends Command<typeof options, void> {
68
68
  * @returns {Promise<string>} The prepared release message
69
69
  */
70
70
  prepareMessage(message?: string): Promise<string>;
71
+ protected help(): void;
71
72
  /**
72
73
  * @description Runs the release script.
73
74
  * @summary This method orchestrates the entire release process, including version preparation, message creation,
@@ -68,6 +68,7 @@ export declare class ReleaseScript extends Command<typeof options, void> {
68
68
  * @returns {Promise<string>} The prepared release message
69
69
  */
70
70
  prepareMessage(message?: string): Promise<string>;
71
+ protected help(): void;
71
72
  /**
72
73
  * @description Runs the release script.
73
74
  * @summary This method orchestrates the entire release process, including version preparation, message creation,
@@ -27,7 +27,7 @@ export * from "./release-chain/index.d.cts";
27
27
  * @const VERSION
28
28
  * @memberOf module:utils
29
29
  */
30
- export declare const VERSION = "1.3.1";
30
+ export declare const VERSION = "1.5.1";
31
31
  /**
32
32
  * @description Represents the current version of the module.
33
33
  * @summary Stores the version for the @decaf-ts/utils package. The build replaces
@@ -27,7 +27,7 @@ export * from "./release-chain/index.d.mts";
27
27
  * @const VERSION
28
28
  * @memberOf module:utils
29
29
  */
30
- export declare const VERSION = "1.3.1";
30
+ export declare const VERSION = "1.5.1";
31
31
  /**
32
32
  * @description Represents the current version of the module.
33
33
  * @summary Stores the version for the @decaf-ts/utils package. The build replaces
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/utils",
3
- "version": "1.3.2",
3
+ "version": "1.5.2",
4
4
  "description": "module management utils for decaf-ts",
5
5
  "type": "module",
6
6
  "exports": {
@@ -32,6 +32,10 @@
32
32
  "types": "./lib/types/index.d.mts",
33
33
  "sideEffects": false,
34
34
  "bin": {
35
+ "modules": "lib/cjs/bin/modules.cjs",
36
+ "run-all": "lib/cjs/bin/run-all.cjs",
37
+ "npm-link": "lib/cjs/bin/npm-link.cjs",
38
+ "npm-token": "lib/cjs/bin/npm-token.cjs",
35
39
  "tag-release": "lib/cjs/bin/tag-release.cjs",
36
40
  "build-scripts": "lib/cjs/bin/build-scripts.cjs",
37
41
  "release-chain": "lib/cjs/bin/release-chain.cjs",