@mono-labs/cli 0.0.167 → 0.0.172

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