@datapos/datapos-development 0.3.368 → 0.3.373

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.
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Check dependencies utilities.
3
3
  */
4
+ /** Utilities - Check dependencies. */
4
5
  declare function checkDependencies(): Promise<void>;
6
+ /** Exposures */
5
7
  export { checkDependencies };
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Document dependencies utilities.
3
3
  */
4
+ /** Utilities - Document. */
4
5
  declare function documentDependencies(licenses?: string[], checkRecursive?: boolean): Promise<void>;
6
+ /** Exposures */
5
7
  export { documentDependencies };
@@ -1,18 +1,34 @@
1
1
  import { Dirent, ObjectEncodingOptions, Stats } from 'node:fs';
2
2
  declare function clearDirectory(directoryPath: string): Promise<void>;
3
+ /** Utilities - Extract operations from source. */
3
4
  declare function extractOperationsFromSource<T>(source: string): T[];
5
+ /** Utilities - Execute command. */
4
6
  declare function execCommand(label: string | undefined, command_: string, arguments_?: string[], outputFilePath?: string): Promise<void>;
7
+ /** Utilities - Get directory entries. */
5
8
  declare function getDirectoryEntries(path: string): Promise<string[]>;
6
9
  declare function getDirectoryEntries(path: string, options: ObjectEncodingOptions): Promise<Dirent[]>;
10
+ /** Utilities - Get stats for path. */
7
11
  declare function getStatsForPath(path: string): Promise<Stats>;
12
+ /** Utilities - Load environment variables. */
8
13
  declare function loadEnvironmentVariables(): Promise<void>;
14
+ /** Utilities - Log operation header. */
9
15
  declare function logOperationHeader(text: string): void;
16
+ /** Utilities - Log operation success. */
10
17
  declare function logOperationSuccess(message: string): void;
18
+ /** Utilities - Log step header. */
11
19
  declare function logStepHeader(text: string): void;
20
+ /** Utilities - Read JSON file. */
12
21
  declare function readJSONFile<T>(path: string): Promise<T>;
13
22
  declare function readTextFile(path: string): Promise<string>;
23
+ /** Utilities - Remove file. */
14
24
  declare function removeFile(path: string): Promise<void>;
25
+ /** Utilities - Spawn command. */
15
26
  declare function spawnCommand(label: string, command: string, arguments_?: string[], ignoreErrors?: boolean): Promise<void>;
27
+ /** Utilities - Substitute content. */
28
+ declare function substituteContent(originalContent: string, substituteContent: string, startMarker: string, endMarker: string): string;
29
+ /** Utilities - Write JSON file. */
16
30
  declare function writeJSONFile(path: string, data: object): Promise<void>;
31
+ /** Utilities - Write text file. */
17
32
  declare function writeTextFile(path: string, data: string): Promise<void>;
18
- export { clearDirectory, execCommand, extractOperationsFromSource, getDirectoryEntries, getStatsForPath, loadEnvironmentVariables, logOperationHeader, logOperationSuccess, logStepHeader, readJSONFile, readTextFile, removeFile, spawnCommand, writeJSONFile, writeTextFile };
33
+ /** Exposures */
34
+ export { clearDirectory, execCommand, extractOperationsFromSource, getDirectoryEntries, getStatsForPath, loadEnvironmentVariables, logOperationHeader, logOperationSuccess, logStepHeader, readJSONFile, readTextFile, removeFile, spawnCommand, substituteContent, writeJSONFile, writeTextFile };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-development",
3
- "version": "0.3.368",
3
+ "version": "0.3.373",
4
4
  "description": "A collection of utilities for managing Data Positioning projects.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",