@datapos/datapos-development 0.3.397 → 0.3.400
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,13 +1,22 @@
|
|
|
1
1
|
import { Dirent, ObjectEncodingOptions, Stats } from 'node:fs';
|
|
2
|
+
/** Interfaces/Types */
|
|
3
|
+
export interface ModuleTypeConfig {
|
|
4
|
+
idPrefix: string;
|
|
5
|
+
typeId: 'app' | 'api' | 'connector' | 'context' | 'development' | 'engine' | 'presenter' | 'resources' | 'shared' | 'tool';
|
|
6
|
+
isPublish: boolean;
|
|
7
|
+
uploadGroupName?: 'connectors' | 'contexts' | 'engine' | 'presenters' | 'tools';
|
|
8
|
+
}
|
|
2
9
|
/** Utilities - Clear directory. */
|
|
3
10
|
declare function clearDirectory(directoryPath: string): Promise<void>;
|
|
4
11
|
/** Utilities - Extract operations from source. */
|
|
5
12
|
declare function extractOperationsFromSource<T>(source: string): T[];
|
|
6
|
-
/** Utilities - Execute command. */
|
|
13
|
+
/** TODO Utilities - Execute command. */
|
|
7
14
|
declare function execCommand(label: string | undefined, command_: string, arguments_?: string[], outputFilePath?: string): Promise<void>;
|
|
8
15
|
/** Utilities - Get directory entries. */
|
|
9
16
|
declare function getDirectoryEntries(path: string): Promise<string[]>;
|
|
10
17
|
declare function getDirectoryEntries(path: string, options: ObjectEncodingOptions): Promise<Dirent[]>;
|
|
18
|
+
/** Utilities - Get module type identifier. */
|
|
19
|
+
declare function getModuleConfig(configId: string): ModuleTypeConfig;
|
|
11
20
|
/** Utilities - Get stats for path. */
|
|
12
21
|
declare function getStatsForPath(path: string): Promise<Stats>;
|
|
13
22
|
/** Utilities - Load environment variables. */
|
|
@@ -32,4 +41,4 @@ declare function writeJSONFile(path: string, data: object): Promise<void>;
|
|
|
32
41
|
/** Utilities - Write text file. */
|
|
33
42
|
declare function writeTextFile(path: string, data: string): Promise<void>;
|
|
34
43
|
/** Exposures */
|
|
35
|
-
export { clearDirectory, execCommand, extractOperationsFromSource, getDirectoryEntries, getStatsForPath, loadEnvironmentVariables, logOperationHeader, logOperationSuccess, logStepHeader, readJSONFile, readTextFile, removeFile, spawnCommand, substituteContent, writeJSONFile, writeTextFile };
|
|
44
|
+
export { clearDirectory, execCommand, extractOperationsFromSource, getDirectoryEntries, getModuleConfig, 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.
|
|
3
|
+
"version": "0.3.400",
|
|
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>",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"licenses/license-report-config.json"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@datapos/datapos-shared": "^0.3.
|
|
37
|
+
"@datapos/datapos-shared": "^0.3.330",
|
|
38
38
|
"acorn": "^8.15.0",
|
|
39
39
|
"acorn-typescript": "^1.4.13",
|
|
40
40
|
"acorn-walk": "^8.3.4",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"valibot": "^1.2.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@datapos/eslint-config-datapos": "^1.0.
|
|
45
|
+
"@datapos/eslint-config-datapos": "^1.0.28",
|
|
46
46
|
"@types/eslint-plugin-security": "^3.0.0",
|
|
47
47
|
"@types/node": "^25.0.3",
|
|
48
48
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|