tnp-core 18.0.37 → 18.0.39

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.
@@ -83,56 +83,63 @@ export declare namespace Utils {
83
83
  */
84
84
  function numValue(pixelsCss: string | number): number;
85
85
  }
86
- export namespace process {
87
- interface ProcessStartOptions {
88
- /**
89
- * by default is process.cwd();
90
- */
91
- cwd?: string;
92
- showCommand?: boolean;
93
- /**
94
- * Modify output line by line
95
- */
96
- outputLineReplace?: (outputLineStderOrStdout: string) => string;
97
- resolvePromiseMsg?: {
98
- /**
99
- * unitil this string is in output of stdout
100
- */
101
- stdout?: string | string[];
102
- /**
103
- * unitil this string is in output of stderr
104
- */
105
- stderr?: string | string[];
106
- /**
107
- * by default only resolve when exit code is 0
108
- */
109
- resolveAfterAnyExitCode?: boolean;
110
- };
86
+ export {};
87
+ }
88
+ export declare namespace UtilsProcess {
89
+ interface ProcessStartOptions {
90
+ /**
91
+ * by default is process.cwd();
92
+ */
93
+ cwd?: string;
94
+ showCommand?: boolean;
95
+ /**
96
+ * Modify output line by line
97
+ */
98
+ outputLineReplace?: (outputLineStderOrStdout: string) => string;
99
+ resolvePromiseMsg?: {
111
100
  /**
112
- * Prefix messages output from child_prcess
101
+ * unitil this string is in output of stdout
113
102
  */
114
- prefix?: string;
103
+ stdout?: string | string[];
115
104
  /**
116
- * Try command again after fail after n miliseconds
105
+ * unitil this string is in output of stderr
117
106
  */
118
- tryAgainWhenFailAfter?: number;
119
- askToTryAgainOnError?: boolean;
120
- exitOnErrorCallback?: (code: number) => void;
107
+ stderr?: string | string[];
121
108
  /**
122
- * Use big buffer for big webpack logs
109
+ * by default only resolve when exit code is 0
123
110
  */
124
- biggerBuffer?: boolean;
125
- hideOutput?: {
126
- stdout?: boolean;
127
- stderr?: boolean;
128
- };
129
- }
130
- function startAsync(command: string, options?: ProcessStartOptions & {
131
- detach?: boolean;
132
- }): Promise<void>;
133
- function startSync(command: string, options?: ProcessStartOptions): void;
111
+ resolveAfterAnyExitCode?: boolean;
112
+ };
113
+ /**
114
+ * Prefix messages output from child_prcess
115
+ */
116
+ prefix?: string;
117
+ /**
118
+ * Try command again after fail after n miliseconds
119
+ */
120
+ tryAgainWhenFailAfter?: number;
121
+ askToTryAgainOnError?: boolean;
122
+ exitOnErrorCallback?: (code: number) => void;
123
+ /**
124
+ * Use big buffer for big webpack logs
125
+ */
126
+ biggerBuffer?: boolean;
127
+ hideOutput?: {
128
+ stdout?: boolean;
129
+ stderr?: boolean;
130
+ };
134
131
  }
135
- export {};
132
+ /**
133
+ * TODO IMPLEMENT
134
+ */
135
+ function startAsync(command: string, options?: ProcessStartOptions & {
136
+ detach?: boolean;
137
+ }): Promise<void>;
138
+ /**
139
+ * TODO IMPLEMENT
140
+ */
141
+ function startSync(command: string, options?: ProcessStartOptions): void;
142
+ const getBashOrShellName: () => "cmd" | "powershell" | "gitbash" | "cygwin" | "unknown" | "bash" | "zsh" | "fish" | "sh";
136
143
  }
137
144
  export declare namespace UtilsString {
138
145
  const kebabCaseNoSplitNumbers: (input: string) => string;