@decaf-ts/utils 1.3.0 → 1.3.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 (57) hide show
  1. package/dist/utils.cjs +1 -1
  2. package/dist/utils.cjs.map +1 -1
  3. package/dist/utils.js +1 -1
  4. package/dist/utils.js.map +1 -1
  5. package/lib/cjs/cli/commands/build-scripts.cjs +10 -10
  6. package/lib/cjs/cli/commands/build-scripts.cjs.map +1 -1
  7. package/lib/cjs/index.cjs +1 -1
  8. package/lib/esm/cli/commands/build-scripts.js +10 -10
  9. package/lib/esm/cli/commands/build-scripts.js.map +1 -1
  10. package/lib/esm/index.js +1 -1
  11. package/lib/types/cli/command.d.cts +3 -3
  12. package/lib/types/cli/command.d.mts +3 -3
  13. package/lib/types/cli/commands/build-scripts.d.cts +3 -3
  14. package/lib/types/cli/commands/build-scripts.d.mts +3 -3
  15. package/lib/types/cli/commands/index.d.cts +3 -3
  16. package/lib/types/cli/commands/index.d.mts +3 -3
  17. package/lib/types/cli/commands/release-chain.d.cts +3 -3
  18. package/lib/types/cli/commands/release-chain.d.mts +3 -3
  19. package/lib/types/cli/commands/tag-release.d.cts +2 -2
  20. package/lib/types/cli/commands/tag-release.d.mts +2 -2
  21. package/lib/types/cli/index.d.cts +4 -4
  22. package/lib/types/cli/index.d.mts +4 -4
  23. package/lib/types/cli/types.d.cts +1 -1
  24. package/lib/types/cli/types.d.mts +1 -1
  25. package/lib/types/index.d.cts +7 -7
  26. package/lib/types/index.d.mts +7 -7
  27. package/lib/types/input/index.d.cts +2 -2
  28. package/lib/types/input/index.d.mts +2 -2
  29. package/lib/types/input/input.d.cts +1 -1
  30. package/lib/types/input/input.d.mts +1 -1
  31. package/lib/types/output/index.d.cts +1 -1
  32. package/lib/types/output/index.d.mts +1 -1
  33. package/lib/types/tests/Consumer.d.cts +1 -1
  34. package/lib/types/tests/Consumer.d.mts +1 -1
  35. package/lib/types/tests/TestReporter.d.cts +1 -1
  36. package/lib/types/tests/TestReporter.d.mts +1 -1
  37. package/lib/types/tests/index.d.cts +4 -4
  38. package/lib/types/tests/index.d.mts +4 -4
  39. package/lib/types/tests/jestPerformanceRunner.d.cts +1 -1
  40. package/lib/types/tests/jestPerformanceRunner.d.mts +1 -1
  41. package/lib/types/tests/utils.d.cts +3 -3
  42. package/lib/types/tests/utils.d.mts +3 -3
  43. package/lib/types/utils/fs.d.cts +1 -1
  44. package/lib/types/utils/fs.d.mts +1 -1
  45. package/lib/types/utils/index.d.cts +6 -6
  46. package/lib/types/utils/index.d.mts +6 -6
  47. package/lib/types/utils/utils.d.cts +3 -3
  48. package/lib/types/utils/utils.d.mts +3 -3
  49. package/lib/types/writers/RegexpOutputWriter.d.cts +2 -2
  50. package/lib/types/writers/RegexpOutputWriter.d.mts +2 -2
  51. package/lib/types/writers/StandardOutputWriter.d.cts +3 -3
  52. package/lib/types/writers/StandardOutputWriter.d.mts +3 -3
  53. package/lib/types/writers/index.d.cts +4 -4
  54. package/lib/types/writers/index.d.mts +4 -4
  55. package/lib/types/writers/types.d.cts +2 -2
  56. package/lib/types/writers/types.d.mts +2 -2
  57. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- export * from "./cli/index.js";
2
- export * from "./input/index.js";
3
- export * from "./output/index.js";
4
- export * from "./utils/index.js";
5
- export * from "./writers/index.js";
6
- export * from "./release-chain/index.js";
1
+ export * from "./cli/index.d.mts";
2
+ export * from "./input/index.d.mts";
3
+ export * from "./output/index.d.mts";
4
+ export * from "./utils/index.d.mts";
5
+ export * from "./writers/index.d.mts";
6
+ export * from "./release-chain/index.d.mts";
7
7
  /**
8
8
  * @module utils
9
9
  * @description Utilities and building blocks for Decaf-TS CLI and scripting.
@@ -27,7 +27,7 @@ export * from "./release-chain/index.js";
27
27
  * @const VERSION
28
28
  * @memberOf module:utils
29
29
  */
30
- export declare const VERSION = "1.2.3";
30
+ export declare const VERSION = "1.3.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
@@ -1,2 +1,2 @@
1
- export * from './input.cjs';
2
- export * from './types.cjs';
1
+ export * from './input.d.cts';
2
+ export * from './types.d.cts';
@@ -1,2 +1,2 @@
1
- export * from './input.js';
2
- export * from './types.js';
1
+ export * from './input.d.mts';
2
+ export * from './types.d.mts';
@@ -1,6 +1,6 @@
1
1
  import { Answers, Choice, Falsy, InitialReturnValue, PrevCaller, PromptObject, PromptType, ValueOrFunc } from "prompts";
2
2
  import { Writable, Readable } from "stream";
3
- import { ParseArgsOptionsConfig, ParseArgsResult } from "./types.cjs";
3
+ import { ParseArgsOptionsConfig, ParseArgsResult } from "./types.d.cts";
4
4
  /**
5
5
  * @description Represents a user input prompt with various configuration options.
6
6
  * @summary This class provides a flexible interface for creating and managing user input prompts.
@@ -1,6 +1,6 @@
1
1
  import { Answers, Choice, Falsy, InitialReturnValue, PrevCaller, PromptObject, PromptType, ValueOrFunc } from "prompts";
2
2
  import { Writable, Readable } from "stream";
3
- import { ParseArgsOptionsConfig, ParseArgsResult } from "./types.js";
3
+ import { ParseArgsOptionsConfig, ParseArgsResult } from "./types.d.mts";
4
4
  /**
5
5
  * @description Represents a user input prompt with various configuration options.
6
6
  * @summary This class provides a flexible interface for creating and managing user input prompts.
@@ -1 +1 @@
1
- export * from "./common.cjs";
1
+ export * from "./common.d.cts";
@@ -1 +1 @@
1
- export * from "./common.js";
1
+ export * from "./common.d.mts";
@@ -1,5 +1,5 @@
1
1
  import { LoggedClass } from "@decaf-ts/logging";
2
- import { TestReporter } from "./TestReporter.cjs";
2
+ import { TestReporter } from "./TestReporter.d.cts";
3
3
  /**
4
4
  * @description Store for logs indexed by identifier.
5
5
  * @summary A record where keys are identifiers and values are arrays of log strings.
@@ -1,5 +1,5 @@
1
1
  import { LoggedClass } from "@decaf-ts/logging";
2
- import { TestReporter } from "./TestReporter.js";
2
+ import { TestReporter } from "./TestReporter.d.mts";
3
3
  /**
4
4
  * @description Store for logs indexed by identifier.
5
5
  * @summary A record where keys are identifiers and values are arrays of log strings.
@@ -1,4 +1,4 @@
1
- import { MdTableDefinition } from "../utils/md.cjs";
1
+ import { MdTableDefinition } from "../utils/md.d.cts";
2
2
  /**
3
3
  * @interface AddAttachParams
4
4
  * @description Parameters for adding an attachment to a report
@@ -1,4 +1,4 @@
1
- import { MdTableDefinition } from "../utils/md.js";
1
+ import { MdTableDefinition } from "../utils/md.d.mts";
2
2
  /**
3
3
  * @interface AddAttachParams
4
4
  * @description Parameters for adding an attachment to a report
@@ -1,4 +1,4 @@
1
- export * from "./Consumer.cjs";
2
- export * from "./TestReporter.cjs";
3
- export * from "./utils.cjs";
4
- export * from "./jestPerformanceRunner.cjs";
1
+ export * from "./Consumer.d.cts";
2
+ export * from "./TestReporter.d.cts";
3
+ export * from "./utils.d.cts";
4
+ export * from "./jestPerformanceRunner.d.cts";
@@ -1,4 +1,4 @@
1
- export * from "./Consumer.js";
2
- export * from "./TestReporter.js";
3
- export * from "./utils.js";
4
- export * from "./jestPerformanceRunner.js";
1
+ export * from "./Consumer.d.mts";
2
+ export * from "./TestReporter.d.mts";
3
+ export * from "./utils.d.mts";
4
+ export * from "./jestPerformanceRunner.d.mts";
@@ -1,4 +1,4 @@
1
- import { PerformanceScenario, PerformanceRunner, PhaseResult } from "../utils/performanceRunner.cjs";
1
+ import { PerformanceScenario, PerformanceRunner, PhaseResult } from "../utils/performanceRunner.d.cts";
2
2
  export type JestPerformanceScenario<TContext = Record<string, unknown>> = PerformanceScenario<TContext>;
3
3
  export declare class JestPerformanceRunner<TContext = Record<string, unknown>> extends PerformanceRunner<TContext> {
4
4
  protected scenario: JestPerformanceScenario<TContext>;
@@ -1,4 +1,4 @@
1
- import { PerformanceScenario, PerformanceRunner, PhaseResult } from "../utils/performanceRunner.js";
1
+ import { PerformanceScenario, PerformanceRunner, PhaseResult } from "../utils/performanceRunner.d.mts";
2
2
  export type JestPerformanceScenario<TContext = Record<string, unknown>> = PerformanceScenario<TContext>;
3
3
  export declare class JestPerformanceRunner<TContext = Record<string, unknown>> extends PerformanceRunner<TContext> {
4
4
  protected scenario: JestPerformanceScenario<TContext>;
@@ -1,5 +1,5 @@
1
1
  import { SpawnOptionsWithoutStdio } from "child_process";
2
- import { OutputWriterConstructor, StandardOutputWriter } from "../writers/index.cjs";
3
- import { CommandResult } from "../utils/types.cjs";
4
- import { TestReporter } from "./TestReporter.cjs";
2
+ import { OutputWriterConstructor, StandardOutputWriter } from "../writers/index.d.cts";
3
+ import { CommandResult } from "../utils/types.d.cts";
4
+ import { TestReporter } from "./TestReporter.d.cts";
5
5
  export declare function runAndReport<R = string>(command: string, opts: SpawnOptionsWithoutStdio | undefined, outputConstructor: OutputWriterConstructor<R, StandardOutputWriter<R>, Error> | undefined, reporter: TestReporter, commandPrefix?: string, ...args: unknown[]): CommandResult<R>;
@@ -1,5 +1,5 @@
1
1
  import { SpawnOptionsWithoutStdio } from "child_process";
2
- import { OutputWriterConstructor, StandardOutputWriter } from "../writers/index.js";
3
- import { CommandResult } from "../utils/types.js";
4
- import { TestReporter } from "./TestReporter.js";
2
+ import { OutputWriterConstructor, StandardOutputWriter } from "../writers/index.d.mts";
3
+ import { CommandResult } from "../utils/types.d.mts";
4
+ import { TestReporter } from "./TestReporter.d.mts";
5
5
  export declare function runAndReport<R = string>(command: string, opts: SpawnOptionsWithoutStdio | undefined, outputConstructor: OutputWriterConstructor<R, StandardOutputWriter<R>, Error> | undefined, reporter: TestReporter, commandPrefix?: string, ...args: unknown[]): CommandResult<R>;
@@ -1,5 +1,5 @@
1
1
  import fs from "fs";
2
- import { DependencyMap, SimpleDependencyMap } from "./types.cjs";
2
+ import { DependencyMap, SimpleDependencyMap } from "./types.d.cts";
3
3
  /**
4
4
  * @description Patches a file with given values.
5
5
  * @summary Reads a file, applies patches using TextUtils, and writes the result back to the file.
@@ -1,5 +1,5 @@
1
1
  import fs from "fs";
2
- import { DependencyMap, SimpleDependencyMap } from "./types.js";
2
+ import { DependencyMap, SimpleDependencyMap } from "./types.d.mts";
3
3
  /**
4
4
  * @description Patches a file with given values.
5
5
  * @summary Reads a file, applies patches using TextUtils, and writes the result back to the file.
@@ -1,6 +1,6 @@
1
- export * from "./constants.cjs";
2
- export * from "./fs.cjs";
3
- export * from "./http.cjs";
4
- export * from "./types.cjs";
5
- export * from "./utils.cjs";
6
- export * from "./performanceRunner.cjs";
1
+ export * from "./constants.d.cts";
2
+ export * from "./fs.d.cts";
3
+ export * from "./http.d.cts";
4
+ export * from "./types.d.cts";
5
+ export * from "./utils.d.cts";
6
+ export * from "./performanceRunner.d.cts";
@@ -1,6 +1,6 @@
1
- export * from "./constants.js";
2
- export * from "./fs.js";
3
- export * from "./http.js";
4
- export * from "./types.js";
5
- export * from "./utils.js";
6
- export * from "./performanceRunner.js";
1
+ export * from "./constants.d.mts";
2
+ export * from "./fs.d.mts";
3
+ export * from "./http.d.mts";
4
+ export * from "./types.d.mts";
5
+ export * from "./utils.d.mts";
6
+ export * from "./performanceRunner.d.mts";
@@ -1,7 +1,7 @@
1
1
  import { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio } from "child_process";
2
- import { StandardOutputWriter } from "../writers/StandardOutputWriter.cjs";
3
- import { CommandResult } from "./types.cjs";
4
- import { OutputWriterConstructor } from "../writers/types.cjs";
2
+ import { StandardOutputWriter } from "../writers/StandardOutputWriter.d.cts";
3
+ import { CommandResult } from "./types.d.cts";
4
+ import { OutputWriterConstructor } from "../writers/types.d.cts";
5
5
  import { Logger } from "@decaf-ts/logging";
6
6
  /**
7
7
  * @description Creates a locked version of a function.
@@ -1,7 +1,7 @@
1
1
  import { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio } from "child_process";
2
- import { StandardOutputWriter } from "../writers/StandardOutputWriter.js";
3
- import { CommandResult } from "./types.js";
4
- import { OutputWriterConstructor } from "../writers/types.js";
2
+ import { StandardOutputWriter } from "../writers/StandardOutputWriter.d.mts";
3
+ import { CommandResult } from "./types.d.mts";
4
+ import { OutputWriterConstructor } from "../writers/types.d.mts";
5
5
  import { Logger } from "@decaf-ts/logging";
6
6
  /**
7
7
  * @description Creates a locked version of a function.
@@ -1,5 +1,5 @@
1
- import { StandardOutputWriter } from "./StandardOutputWriter.cjs";
2
- import { PromiseExecutor } from "../utils/types.cjs";
1
+ import { StandardOutputWriter } from "./StandardOutputWriter.d.cts";
2
+ import { PromiseExecutor } from "../utils/types.d.cts";
3
3
  /**
4
4
  * @description A specialized output writer that uses regular expressions to process output.
5
5
  * @summary This class extends StandardOutputWriter to provide regex-based output processing.
@@ -1,5 +1,5 @@
1
- import { StandardOutputWriter } from "./StandardOutputWriter.js";
2
- import { PromiseExecutor } from "../utils/types.js";
1
+ import { StandardOutputWriter } from "./StandardOutputWriter.d.mts";
2
+ import { PromiseExecutor } from "../utils/types.d.mts";
3
3
  /**
4
4
  * @description A specialized output writer that uses regular expressions to process output.
5
5
  * @summary This class extends StandardOutputWriter to provide regex-based output processing.
@@ -1,6 +1,6 @@
1
- import { OutputWriter } from "./OutputWriter.cjs";
2
- import { PromiseExecutor } from "../utils/types.cjs";
3
- import { OutputType } from "./types.cjs";
1
+ import { OutputWriter } from "./OutputWriter.d.cts";
2
+ import { PromiseExecutor } from "../utils/types.d.cts";
3
+ import { OutputType } from "./types.d.cts";
4
4
  import { Logger } from "@decaf-ts/logging";
5
5
  /**
6
6
  * @description A standard output writer for handling command execution output.
@@ -1,6 +1,6 @@
1
- import { OutputWriter } from "./OutputWriter.js";
2
- import { PromiseExecutor } from "../utils/types.js";
3
- import { OutputType } from "./types.js";
1
+ import { OutputWriter } from "./OutputWriter.d.mts";
2
+ import { PromiseExecutor } from "../utils/types.d.mts";
3
+ import { OutputType } from "./types.d.mts";
4
4
  import { Logger } from "@decaf-ts/logging";
5
5
  /**
6
6
  * @description A standard output writer for handling command execution output.
@@ -1,4 +1,4 @@
1
- export * from './OutputWriter.cjs';
2
- export * from './RegexpOutputWriter.cjs';
3
- export * from './StandardOutputWriter.cjs';
4
- export * from './types.cjs';
1
+ export * from './OutputWriter.d.cts';
2
+ export * from './RegexpOutputWriter.d.cts';
3
+ export * from './StandardOutputWriter.d.cts';
4
+ export * from './types.d.cts';
@@ -1,4 +1,4 @@
1
- export * from './OutputWriter.js';
2
- export * from './RegexpOutputWriter.js';
3
- export * from './StandardOutputWriter.js';
4
- export * from './types.js';
1
+ export * from './OutputWriter.d.mts';
2
+ export * from './RegexpOutputWriter.d.mts';
3
+ export * from './StandardOutputWriter.d.mts';
4
+ export * from './types.d.mts';
@@ -1,5 +1,5 @@
1
- import { StandardOutputWriter } from "./StandardOutputWriter.cjs";
2
- import { PromiseExecutor } from "../utils/types.cjs";
1
+ import { StandardOutputWriter } from "./StandardOutputWriter.d.cts";
2
+ import { PromiseExecutor } from "../utils/types.d.cts";
3
3
  /**
4
4
  * @description Represents the type of output stream.
5
5
  * @summary A union type for standard output and standard error streams.
@@ -1,5 +1,5 @@
1
- import { StandardOutputWriter } from "./StandardOutputWriter.js";
2
- import { PromiseExecutor } from "../utils/types.js";
1
+ import { StandardOutputWriter } from "./StandardOutputWriter.d.mts";
2
+ import { PromiseExecutor } from "../utils/types.d.mts";
3
3
  /**
4
4
  * @description Represents the type of output stream.
5
5
  * @summary A union type for standard output and standard error streams.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/utils",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "module management utils for decaf-ts",
5
5
  "type": "module",
6
6
  "exports": {