ts-repo-utils 7.0.0 → 7.0.1
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/dist/cmd/assert-repo-is-clean.mjs +1 -1
- package/dist/cmd/check-should-run-type-checks.mjs +1 -1
- package/dist/cmd/format-diff-from.mjs +1 -1
- package/dist/cmd/format-uncommitted.mjs +1 -1
- package/dist/cmd/gen-index-ts.mjs +1 -1
- package/dist/functions/exec-async.d.mts +4 -5
- package/dist/functions/exec-async.d.mts.map +1 -1
- package/dist/functions/exec-async.mjs.map +1 -1
- package/package.json +1 -1
- package/src/cmd/assert-repo-is-clean.mts +1 -1
- package/src/cmd/check-should-run-type-checks.mts +1 -1
- package/src/cmd/format-diff-from.mts +1 -1
- package/src/cmd/format-uncommitted.mts +1 -1
- package/src/cmd/gen-index-ts.mts +1 -1
- package/src/functions/exec-async.mts +6 -8
|
@@ -15,12 +15,11 @@ export type ExecResult<T extends string | Buffer> = Result<Readonly<{
|
|
|
15
15
|
* @param options - Optional configuration for command execution.
|
|
16
16
|
* @returns A promise that resolves with the command result.
|
|
17
17
|
*/
|
|
18
|
-
export declare function $(command: string, options?: ExecOptionsCustom
|
|
19
|
-
export declare function $(command: string, options: Readonly<{
|
|
20
|
-
encoding: 'buffer' | null;
|
|
21
|
-
} & ExecOptions>): Promise<ExecResult<Buffer>>;
|
|
22
|
-
export declare function $(command: string, options: Readonly<{
|
|
18
|
+
export declare function $(command: string, options?: ExecOptionsCustom | Readonly<{
|
|
23
19
|
encoding: BufferEncoding;
|
|
24
20
|
} & ExecOptions>): Promise<ExecResult<string>>;
|
|
21
|
+
export declare function $(command: string, options?: Readonly<{
|
|
22
|
+
encoding: 'buffer' | null;
|
|
23
|
+
} & ExecOptions>): Promise<ExecResult<Buffer>>;
|
|
25
24
|
export {};
|
|
26
25
|
//# sourceMappingURL=exec-async.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec-async.d.mts","sourceRoot":"","sources":["../../src/functions/exec-async.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,KAAK,iBAAiB,GAAG,QAAQ,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEvE,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,MAAM,CACxD,QAAQ,CAAC;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,CAAC,CAAA;CAAE,CAAC,EAClC,YAAY,CAAC,aAAa,CAC3B,CAAC;AAEF;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"exec-async.d.mts","sourceRoot":"","sources":["../../src/functions/exec-async.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,KAAK,iBAAiB,GAAG,QAAQ,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEvE,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,MAAM,CACxD,QAAQ,CAAC;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,CAAC,CAAA;CAAE,CAAC,EAClC,YAAY,CAAC,aAAa,CAC3B,CAAC;AAEF;;;;;;GAMG;AAEH,wBAAgB,CAAC,CACf,OAAO,EAAE,MAAM,EAEf,OAAO,CAAC,EACJ,iBAAiB,GACjB,QAAQ,CAAC;IAAE,QAAQ,EAAE,cAAc,CAAA;CAAE,GAAG,WAAW,CAAC,GACvD,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AAE/B,wBAAgB,CAAC,CACf,OAAO,EAAE,MAAM,EAEf,OAAO,CAAC,EAAE,QAAQ,CAAC;IAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAA;CAAE,GAAG,WAAW,CAAC,GAC9D,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec-async.mjs","sources":["../../src/functions/exec-async.mts"],"sourcesContent":[null],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"exec-async.mjs","sources":["../../src/functions/exec-async.mts"],"sourcesContent":[null],"names":[],"mappings":";;;AAoCM,SAAU,CAAC,CACf,OAAe;AACf;AACA,OAEC,EAAA;AAED,IAAA,MAAM,EAAE,MAAM,GAAG,KAAK,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,IAAI,EAAE;IAExD,IAAI,CAAC,MAAM,EAAE;AACX,QAAA,IAAI,CAAC,CAAA,EAAA,EAAK,OAAO,CAAA,CAAE,CAAC;IACtB;AAEA,IAAA,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAI;;AAE7B,QAAA,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,KAAI;YAChE,IAAI,CAAC,MAAM,EAAE;AACX,gBAAA,IAAI,MAAM,KAAK,EAAE,EAAE;oBACjB,IAAI,CAAC,MAAM,CAAC;gBACd;AACA,gBAAA,IAAI,MAAM,KAAK,EAAE,EAAE;AACjB,oBAAA,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;gBACvB;YACF;AAEA,YAAA,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC5B;iBAAO;AACL,gBAAA,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;YACxC;AACF,QAAA,CAAC,CAAC;AACJ,IAAA,CAAC,CAAC;AACJ;;;;"}
|
package/package.json
CHANGED
package/src/cmd/gen-index-ts.mts
CHANGED
|
@@ -19,22 +19,20 @@ export type ExecResult<T extends string | Buffer> = Result<
|
|
|
19
19
|
* @param options - Optional configuration for command execution.
|
|
20
20
|
* @returns A promise that resolves with the command result.
|
|
21
21
|
*/
|
|
22
|
-
export function $(
|
|
23
|
-
command: string,
|
|
24
|
-
options?: ExecOptionsCustom,
|
|
25
|
-
): Promise<ExecResult<string>>;
|
|
26
22
|
|
|
27
23
|
export function $(
|
|
28
24
|
command: string,
|
|
29
25
|
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
30
|
-
options
|
|
31
|
-
|
|
26
|
+
options?:
|
|
27
|
+
| ExecOptionsCustom
|
|
28
|
+
| Readonly<{ encoding: BufferEncoding } & ExecOptions>,
|
|
29
|
+
): Promise<ExecResult<string>>;
|
|
32
30
|
|
|
33
31
|
export function $(
|
|
34
32
|
command: string,
|
|
35
33
|
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
36
|
-
options
|
|
37
|
-
): Promise<ExecResult<
|
|
34
|
+
options?: Readonly<{ encoding: 'buffer' | null } & ExecOptions>,
|
|
35
|
+
): Promise<ExecResult<Buffer>>;
|
|
38
36
|
|
|
39
37
|
export function $(
|
|
40
38
|
command: string,
|