@decaf-ts/utils 1.3.1 → 1.5.1

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 (74) 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/build-scripts.cjs +0 -0
  7. package/lib/cjs/bin/modules.cjs +14 -0
  8. package/lib/cjs/bin/modules.cjs.map +1 -0
  9. package/lib/cjs/bin/npm-link.cjs +14 -0
  10. package/lib/cjs/bin/npm-link.cjs.map +1 -0
  11. package/lib/cjs/bin/npm-token.cjs +14 -0
  12. package/lib/cjs/bin/npm-token.cjs.map +1 -0
  13. package/lib/cjs/bin/release-chain-dispatch.cjs +0 -0
  14. package/lib/cjs/bin/release-chain.cjs +0 -0
  15. package/lib/cjs/bin/run-all.cjs +14 -0
  16. package/lib/cjs/bin/run-all.cjs.map +1 -0
  17. package/lib/cjs/bin/tag-release.cjs +0 -0
  18. package/lib/cjs/cli/commands/index.cjs +5 -0
  19. package/lib/cjs/cli/commands/index.cjs.map +1 -1
  20. package/lib/cjs/cli/commands/modules.cjs +66 -0
  21. package/lib/cjs/cli/commands/modules.cjs.map +1 -0
  22. package/lib/cjs/cli/commands/npm-link.cjs +165 -0
  23. package/lib/cjs/cli/commands/npm-link.cjs.map +1 -0
  24. package/lib/cjs/cli/commands/npm-token.cjs +63 -0
  25. package/lib/cjs/cli/commands/npm-token.cjs.map +1 -0
  26. package/lib/cjs/cli/commands/run-all.cjs +55 -0
  27. package/lib/cjs/cli/commands/run-all.cjs.map +1 -0
  28. package/lib/cjs/cli/commands/tag-release-shell.cjs +177 -0
  29. package/lib/cjs/cli/commands/tag-release-shell.cjs.map +1 -0
  30. package/lib/cjs/index.cjs +1 -1
  31. package/lib/esm/bin/modules.js +10 -0
  32. package/lib/esm/bin/modules.js.map +1 -0
  33. package/lib/esm/bin/npm-link.js +10 -0
  34. package/lib/esm/bin/npm-link.js.map +1 -0
  35. package/lib/esm/bin/npm-token.js +10 -0
  36. package/lib/esm/bin/npm-token.js.map +1 -0
  37. package/lib/esm/bin/run-all.js +10 -0
  38. package/lib/esm/bin/run-all.js.map +1 -0
  39. package/lib/esm/cli/commands/index.js +5 -0
  40. package/lib/esm/cli/commands/index.js.map +1 -1
  41. package/lib/esm/cli/commands/modules.js +56 -0
  42. package/lib/esm/cli/commands/modules.js.map +1 -0
  43. package/lib/esm/cli/commands/npm-link.js +157 -0
  44. package/lib/esm/cli/commands/npm-link.js.map +1 -0
  45. package/lib/esm/cli/commands/npm-token.js +55 -0
  46. package/lib/esm/cli/commands/npm-token.js.map +1 -0
  47. package/lib/esm/cli/commands/run-all.js +47 -0
  48. package/lib/esm/cli/commands/run-all.js.map +1 -0
  49. package/lib/esm/cli/commands/tag-release-shell.js +169 -0
  50. package/lib/esm/cli/commands/tag-release-shell.js.map +1 -0
  51. package/lib/esm/index.js +1 -1
  52. package/lib/types/bin/modules.d.cts +1 -0
  53. package/lib/types/bin/modules.d.mts +1 -0
  54. package/lib/types/bin/npm-link.d.cts +1 -0
  55. package/lib/types/bin/npm-link.d.mts +1 -0
  56. package/lib/types/bin/npm-token.d.cts +1 -0
  57. package/lib/types/bin/npm-token.d.mts +1 -0
  58. package/lib/types/bin/run-all.d.cts +1 -0
  59. package/lib/types/bin/run-all.d.mts +1 -0
  60. package/lib/types/cli/commands/index.d.cts +5 -0
  61. package/lib/types/cli/commands/index.d.mts +5 -0
  62. package/lib/types/cli/commands/modules.d.cts +18 -0
  63. package/lib/types/cli/commands/modules.d.mts +18 -0
  64. package/lib/types/cli/commands/npm-link.d.cts +34 -0
  65. package/lib/types/cli/commands/npm-link.d.mts +34 -0
  66. package/lib/types/cli/commands/npm-token.d.cts +22 -0
  67. package/lib/types/cli/commands/npm-token.d.mts +22 -0
  68. package/lib/types/cli/commands/run-all.d.cts +21 -0
  69. package/lib/types/cli/commands/run-all.d.mts +21 -0
  70. package/lib/types/cli/commands/tag-release-shell.d.cts +56 -0
  71. package/lib/types/cli/commands/tag-release-shell.d.mts +56 -0
  72. package/lib/types/index.d.cts +1 -1
  73. package/lib/types/index.d.mts +1 -1
  74. package/package.json +6 -2
@@ -0,0 +1,22 @@
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
+ maxTraversal: {
6
+ type: string;
7
+ default: string;
8
+ };
9
+ tokenFiles: {
10
+ type: string;
11
+ multiple: boolean;
12
+ default: string[];
13
+ };
14
+ };
15
+ export declare class NpmTokenCommand extends Command<typeof options, void> {
16
+ constructor();
17
+ protected run(answers: LoggingConfig & typeof DefaultCommandValues & {
18
+ maxTraversal: unknown;
19
+ tokenFiles: unknown;
20
+ }): Promise<void>;
21
+ }
22
+ export {};
@@ -0,0 +1,21 @@
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
+ basePath: {
6
+ type: string;
7
+ default: string;
8
+ };
9
+ command: {
10
+ type: string;
11
+ default: undefined;
12
+ };
13
+ };
14
+ export declare class RunAllCommand extends Command<typeof options, void> {
15
+ constructor();
16
+ protected run(answers: LoggingConfig & typeof DefaultCommandValues & {
17
+ basePath: unknown;
18
+ command: unknown;
19
+ }): Promise<void>;
20
+ }
21
+ export {};
@@ -0,0 +1,21 @@
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
+ basePath: {
6
+ type: string;
7
+ default: string;
8
+ };
9
+ command: {
10
+ type: string;
11
+ default: undefined;
12
+ };
13
+ };
14
+ export declare class RunAllCommand extends Command<typeof options, void> {
15
+ constructor();
16
+ protected run(answers: LoggingConfig & typeof DefaultCommandValues & {
17
+ basePath: unknown;
18
+ command: unknown;
19
+ }): Promise<void>;
20
+ }
21
+ export {};
@@ -0,0 +1,56 @@
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 run(answers: LoggingConfig & typeof DefaultCommandValues & {
46
+ public: unknown;
47
+ private: unknown;
48
+ gitToken: unknown;
49
+ npmToken: unknown;
50
+ gitUser: unknown;
51
+ allowFromBranch: unknown;
52
+ tag: unknown;
53
+ message: unknown;
54
+ }): Promise<void>;
55
+ }
56
+ export {};
@@ -0,0 +1,56 @@
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 run(answers: LoggingConfig & typeof DefaultCommandValues & {
46
+ public: unknown;
47
+ private: unknown;
48
+ gitToken: unknown;
49
+ npmToken: unknown;
50
+ gitUser: unknown;
51
+ allowFromBranch: unknown;
52
+ tag: unknown;
53
+ message: unknown;
54
+ }): Promise<void>;
55
+ }
56
+ export {};
@@ -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.0";
30
+ export declare const VERSION = "1.5.0";
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.0";
30
+ export declare const VERSION = "1.5.0";
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.1",
3
+ "version": "1.5.1",
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",
@@ -45,7 +49,7 @@
45
49
  "set-git-auth": "git config url.\"https://api:$(cat .token)@github.com/\".insteadOf \"https://github.com/\" && git config url.\"https://ssh:$(cat .token)@github.com/\".insteadOf \"ssh://git@github.com/\" && git config url.\"https://git:$(cat .token)@github.com/\".insteadOf \"git@github.com:\"",
46
50
  "flash-forward": "npx npm-check-updates -u && npm run do-install",
47
51
  "reset": "rm -rf * && git checkout . && git pull && npm run do-install",
48
- "add:shebang": "sed -i -e '1i#!/usr/bin/env node\\' ./lib/cjs/bin/*.cjs",
52
+ "add:shebang": "sed -i -e '1i#!/usr/bin/env node\\' ./lib/cjs/bin/*.cjs && chmod +x lib/cjs/bin/*.cjs",
49
53
  "build": "tsx ./src/bin/build-scripts.ts --dev && npm run add:shebang",
50
54
  "build:prod": "tsx ./src/bin/build-scripts.ts --prod && npm run add:shebang",
51
55
  "test": "jest --runInBand --detectOpenHandles",