@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.
Files changed (2) hide show
  1. package/package.json +1 -11
  2. 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.172",
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
- export interface HasteConfig {
4
- envMap?: Record<string, string>;
5
- workspace?: {
6
- packageMaps?: Record<string, string>;
7
- preactions?: string[];
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
- [commandName: string]: CommandConfig;
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
- 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
- }
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
- type?: 'string' | 'boolean';
34
- description?: string;
35
- default?: string | boolean;
36
- shortcut?: string;
37
- options?: string[];
38
- allowAll?: boolean;
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
- rootDir: string;
43
- rootJson: any;
44
- files: HasteFiles;
45
- config: HasteConfig;
46
- }
42
+ export interface BootResult {
43
+ rootDir: string;
44
+ rootJson: any;
45
+ files: HasteFiles;
46
+ config: HasteConfig;
47
+ }
47
48
 
48
- export declare function filterUnwantedEnvVarsEAS(
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 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;
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 declare function boot(): BootResult;
61
+ export function boot(): BootResult;
63
62
 
64
- export declare function getHasteConfig(): {
65
- files: HasteFiles;
66
- config: HasteConfig;
67
- };
63
+ export function getHasteConfig(): {
64
+ files: HasteFiles;
65
+ config: HasteConfig;
66
+ };
68
67
 
69
- export declare function getRootDirectory(): string;
70
- export declare function getRootJson(): any;
68
+ export function getRootDirectory(): string;
69
+ export function getRootJson(): any;
71
70
 
72
- export declare function buildCommands(files: HasteFiles): void;
71
+ export function buildCommands(files: HasteFiles): void;
73
72
 
74
- export declare function runHasteCommand(
75
- configObject: CommandConfig,
76
- options: Record<string, any>
77
- ): Promise<void>;
73
+ export function runHasteCommand(
74
+ configObject: CommandConfig,
75
+ options: Record<string, any>
76
+ ): Promise<void>;
78
77
 
79
- export declare function verifyOptionValue(
80
- optionKey: string,
81
- value: any,
82
- optionsData: Record<string, OptionConfig>
83
- ): any;
78
+ export function verifyOptionValue(
79
+ optionKey: string,
80
+ value: any,
81
+ optionsData: Record<string, OptionConfig>
82
+ ): any;
83
+ }