@mono-labs/cli 0.0.172 → 0.0.173
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.
- package/package.json +1 -11
- package/types.d.ts +68 -68
package/package.json
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mono-labs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.173",
|
|
4
4
|
"description": "A CLI tool for building and deploying projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "types.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./types.d.ts",
|
|
11
|
-
"import": "./index.js"
|
|
12
|
-
},
|
|
13
|
-
"./*": {
|
|
14
|
-
"types": "./src/*.d.ts",
|
|
15
|
-
"import": "./src/*.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
8
|
"repository": {
|
|
19
9
|
"type": "git",
|
|
20
10
|
"url": "https://github.com/codymurphyjones/mono-labs-cli.git"
|
package/types.d.ts
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
// Type definitions for mono-labs CLI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
3
|
+
declare module '@mono-labs/cli' {
|
|
4
|
+
export interface HasteConfig {
|
|
5
|
+
envMap?: Record<string, string>;
|
|
6
|
+
workspace?: {
|
|
7
|
+
packageMaps?: Record<string, string>;
|
|
8
|
+
preactions?: string[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
10
11
|
|
|
11
|
-
export interface HasteFiles {
|
|
12
|
-
|
|
13
|
-
}
|
|
12
|
+
export interface HasteFiles {
|
|
13
|
+
[commandName: string]: CommandConfig;
|
|
14
|
+
}
|
|
14
15
|
|
|
15
|
-
export interface CommandConfig {
|
|
16
|
-
description?: string;
|
|
17
|
-
argument?: {
|
|
18
|
-
type?: string;
|
|
16
|
+
export interface CommandConfig {
|
|
19
17
|
description?: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
argument?: {
|
|
19
|
+
type?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
default?: string;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
};
|
|
24
|
+
options?: Record<string, OptionConfig>;
|
|
25
|
+
preactions?: string[];
|
|
26
|
+
actions?: string[];
|
|
27
|
+
environments?: {
|
|
28
|
+
dev?: Record<string, string>;
|
|
29
|
+
stage?: Record<string, string>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
31
32
|
|
|
32
|
-
export interface OptionConfig {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
33
|
+
export interface OptionConfig {
|
|
34
|
+
type?: 'string' | 'boolean';
|
|
35
|
+
description?: string;
|
|
36
|
+
default?: string | boolean;
|
|
37
|
+
shortcut?: string;
|
|
38
|
+
options?: string[];
|
|
39
|
+
allowAll?: boolean;
|
|
40
|
+
}
|
|
40
41
|
|
|
41
|
-
export interface BootResult {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
42
|
+
export interface BootResult {
|
|
43
|
+
rootDir: string;
|
|
44
|
+
rootJson: any;
|
|
45
|
+
files: HasteFiles;
|
|
46
|
+
config: HasteConfig;
|
|
47
|
+
}
|
|
47
48
|
|
|
48
|
-
export
|
|
49
|
-
env: string
|
|
50
|
-
): NodeJS.ProcessEnv;
|
|
51
|
-
export declare function filterUnwantedEnvVars(env: string): NodeJS.ProcessEnv;
|
|
49
|
+
export function filterUnwantedEnvVarsEAS(env: string): NodeJS.ProcessEnv;
|
|
50
|
+
export function filterUnwantedEnvVars(env: string): NodeJS.ProcessEnv;
|
|
52
51
|
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
): string;
|
|
57
|
-
// Function type declarations
|
|
58
|
-
export
|
|
59
|
-
|
|
60
|
-
): NodeJS.ProcessEnv;
|
|
52
|
+
export function replaceTokens(
|
|
53
|
+
input: string,
|
|
54
|
+
tokens: Record<string, string>
|
|
55
|
+
): string;
|
|
56
|
+
// Function type declarations
|
|
57
|
+
export function generateNewEnvList(
|
|
58
|
+
processEnv: NodeJS.ProcessEnv
|
|
59
|
+
): NodeJS.ProcessEnv;
|
|
61
60
|
|
|
62
|
-
export
|
|
61
|
+
export function boot(): BootResult;
|
|
63
62
|
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
63
|
+
export function getHasteConfig(): {
|
|
64
|
+
files: HasteFiles;
|
|
65
|
+
config: HasteConfig;
|
|
66
|
+
};
|
|
68
67
|
|
|
69
|
-
export
|
|
70
|
-
export
|
|
68
|
+
export function getRootDirectory(): string;
|
|
69
|
+
export function getRootJson(): any;
|
|
71
70
|
|
|
72
|
-
export
|
|
71
|
+
export function buildCommands(files: HasteFiles): void;
|
|
73
72
|
|
|
74
|
-
export
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
): Promise<void>;
|
|
73
|
+
export function runHasteCommand(
|
|
74
|
+
configObject: CommandConfig,
|
|
75
|
+
options: Record<string, any>
|
|
76
|
+
): Promise<void>;
|
|
78
77
|
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
): any;
|
|
78
|
+
export function verifyOptionValue(
|
|
79
|
+
optionKey: string,
|
|
80
|
+
value: any,
|
|
81
|
+
optionsData: Record<string, OptionConfig>
|
|
82
|
+
): any;
|
|
83
|
+
}
|