exupery-core-bin 0.1.6 → 0.1.7
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/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ import * as _easync from 'exupery-core-async';
|
|
|
7
7
|
export declare const run_program: (main: ($: {
|
|
8
8
|
"arguments": _et.Array<string>;
|
|
9
9
|
}) => _easync.Safe_Command_Result) => void;
|
|
10
|
+
export type Error = {
|
|
11
|
+
'exit code': number;
|
|
12
|
+
};
|
|
10
13
|
/**
|
|
11
14
|
* Runs a program main function, passing command line arguments (excluding
|
|
12
15
|
* `node` and the script name), and setting the process exit code to the
|
|
@@ -14,6 +17,4 @@ export declare const run_program: (main: ($: {
|
|
|
14
17
|
*/
|
|
15
18
|
export declare const run_unsafe_program: (main: ($: {
|
|
16
19
|
"arguments": _et.Array<string>;
|
|
17
|
-
}) => _easync.Unsafe_Command_Result<
|
|
18
|
-
"exit_code": number;
|
|
19
|
-
}>) => void;
|
|
20
|
+
}) => _easync.Unsafe_Command_Result<Error>) => void;
|
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ const run_unsafe_program = (main) => {
|
|
|
46
46
|
'arguments': _ei.array_literal(process.argv.slice(2))
|
|
47
47
|
}).__start(() => {
|
|
48
48
|
}, ($) => {
|
|
49
|
-
process.exitCode =
|
|
49
|
+
process.exitCode = $['exit code'];
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
exports.run_unsafe_program = run_unsafe_program;
|