exupery-core-bin 0.1.4 → 0.1.5
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 +3 -2
- package/dist/index.js +2 -2
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
|
-
|
|
3
|
-
export type
|
|
2
|
+
import * as _easync from 'exupery-core-async';
|
|
3
|
+
export type Program_Main = ($: _et.Array<string>) => _easync.Safe_Command_Result;
|
|
4
|
+
export type Unsafe_Program_Main = ($: _et.Array<string>) => _easync.Unsafe_Command_Result<number>;
|
|
4
5
|
/**
|
|
5
6
|
* Runs a program main function, passing command line arguments (excluding
|
|
6
7
|
* `node` and the script name), and setting the process exit code to the
|
package/dist/index.js
CHANGED
|
@@ -31,12 +31,12 @@ const _ei = __importStar(require("exupery-core-internals"));
|
|
|
31
31
|
* returned value when the async value completes.
|
|
32
32
|
*/
|
|
33
33
|
const run_program = (main) => {
|
|
34
|
-
main(_ei.array_literal(process.argv.slice(2))).__start((
|
|
34
|
+
main(_ei.array_literal(process.argv.slice(2))).__start(() => {
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
exports.run_program = run_program;
|
|
38
38
|
const run_unsafe_program = (main) => {
|
|
39
|
-
main(_ei.array_literal(process.argv.slice(2))).__start((
|
|
39
|
+
main(_ei.array_literal(process.argv.slice(2))).__start(() => {
|
|
40
40
|
}, ($) => {
|
|
41
41
|
process.exitCode = $;
|
|
42
42
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exupery-core-bin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"description": "this is one of the core packages for Exupery. it provides functionality to create executables",
|
|
6
6
|
"author": "Corno",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"url": "git+https://github.com/corno/exupery-core.git"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"exupery-core-
|
|
30
|
+
"exupery-core-async": "^0.1.3",
|
|
31
|
+
"exupery-core-internals": "^0.1.7"
|
|
31
32
|
}
|
|
32
33
|
}
|