tnp-core 18.0.36 → 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.
@@ -8,6 +8,8 @@ export declare namespace Utils {
8
8
  */
9
9
  export const escapeStringForRegEx: (stringForRegExp: string) => string;
10
10
  export function removeChalkSpecialChars(str: string): string;
11
+ export const fullDateTime: () => any;
12
+ export const fullDate: () => any;
11
13
  interface AttrJsoncProp {
12
14
  name: string;
13
15
  value?: any;
@@ -81,56 +83,63 @@ export declare namespace Utils {
81
83
  */
82
84
  function numValue(pixelsCss: string | number): number;
83
85
  }
84
- export namespace process {
85
- interface ProcessStartOptions {
86
- /**
87
- * by default is process.cwd();
88
- */
89
- cwd?: string;
90
- showCommand?: boolean;
91
- /**
92
- * Modify output line by line
93
- */
94
- outputLineReplace?: (outputLineStderOrStdout: string) => string;
95
- resolvePromiseMsg?: {
96
- /**
97
- * unitil this string is in output of stdout
98
- */
99
- stdout?: string | string[];
100
- /**
101
- * unitil this string is in output of stderr
102
- */
103
- stderr?: string | string[];
104
- /**
105
- * by default only resolve when exit code is 0
106
- */
107
- resolveAfterAnyExitCode?: boolean;
108
- };
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?: {
109
100
  /**
110
- * Prefix messages output from child_prcess
101
+ * unitil this string is in output of stdout
111
102
  */
112
- prefix?: string;
103
+ stdout?: string | string[];
113
104
  /**
114
- * Try command again after fail after n miliseconds
105
+ * unitil this string is in output of stderr
115
106
  */
116
- tryAgainWhenFailAfter?: number;
117
- askToTryAgainOnError?: boolean;
118
- exitOnErrorCallback?: (code: number) => void;
107
+ stderr?: string | string[];
119
108
  /**
120
- * Use big buffer for big webpack logs
109
+ * by default only resolve when exit code is 0
121
110
  */
122
- biggerBuffer?: boolean;
123
- hideOutput?: {
124
- stdout?: boolean;
125
- stderr?: boolean;
126
- };
127
- }
128
- function startAsync(command: string, options?: ProcessStartOptions & {
129
- detach?: boolean;
130
- }): Promise<void>;
131
- 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
+ };
132
131
  }
133
- 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";
134
143
  }
135
144
  export declare namespace UtilsString {
136
145
  const kebabCaseNoSplitNumbers: (input: string) => string;