exupery-core-bin 0.1.15 → 0.1.17
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 +7 -8
- package/dist/index.js +3 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import * as _et from 'exupery-core-types';
|
|
2
2
|
import * as _easync from 'exupery-core-async';
|
|
3
|
-
export type
|
|
4
|
-
'arguments': _et.Array<string>;
|
|
5
|
-
}) => _easync.Guaranteed_Procedure_Context;
|
|
3
|
+
export type Initialize_Guaranteed_Main = _easync.Initialize_Guaranteed_Procedure<Parameters>;
|
|
6
4
|
/**
|
|
7
5
|
* Runs a program main function, passing command line arguments (excluding
|
|
8
6
|
* `node` and the script name)
|
|
9
7
|
*/
|
|
10
|
-
export declare const run_guaranteed_main_procedure: (main:
|
|
8
|
+
export declare const run_guaranteed_main_procedure: (main: Initialize_Guaranteed_Main) => void;
|
|
9
|
+
export type Parameters = {
|
|
10
|
+
'arguments': _et.Array<string>;
|
|
11
|
+
};
|
|
11
12
|
export type Error = {
|
|
12
13
|
'exit code': number;
|
|
13
14
|
};
|
|
14
|
-
export type
|
|
15
|
-
'arguments': _et.Array<string>;
|
|
16
|
-
}) => _easync.Unguaranteed_Procedure_Context<Error>;
|
|
15
|
+
export type Initialize_Unguaranteed_Main = _easync.Initialize_Unguaranteed_Procedure<Parameters, Error>;
|
|
17
16
|
/**
|
|
18
17
|
* Runs a program main function, passing command line arguments (excluding
|
|
19
18
|
* `node` and the script name), and setting the process exit code to the
|
|
20
19
|
* returned value when the async value completes.
|
|
21
20
|
*/
|
|
22
|
-
export declare const run_unguaranteed_main_procedure: (main:
|
|
21
|
+
export declare const run_unguaranteed_main_procedure: (main: Initialize_Unguaranteed_Main) => void;
|
package/dist/index.js
CHANGED
|
@@ -25,16 +25,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.run_unguaranteed_main_procedure = exports.run_guaranteed_main_procedure = void 0;
|
|
27
27
|
const _ei = __importStar(require("exupery-core-internals"));
|
|
28
|
-
const _easync = __importStar(require("exupery-core-async"));
|
|
29
28
|
/**
|
|
30
29
|
* Runs a program main function, passing command line arguments (excluding
|
|
31
30
|
* `node` and the script name)
|
|
32
31
|
*/
|
|
33
32
|
const run_guaranteed_main_procedure = (main) => {
|
|
34
|
-
main(
|
|
33
|
+
main({
|
|
35
34
|
'arguments': _ei.array_literal(process.argv.slice(2))
|
|
36
|
-
}).__start(() => {
|
|
37
|
-
});
|
|
35
|
+
}).__start(() => { });
|
|
38
36
|
};
|
|
39
37
|
exports.run_guaranteed_main_procedure = run_guaranteed_main_procedure;
|
|
40
38
|
/**
|
|
@@ -43,7 +41,7 @@ exports.run_guaranteed_main_procedure = run_guaranteed_main_procedure;
|
|
|
43
41
|
* returned value when the async value completes.
|
|
44
42
|
*/
|
|
45
43
|
const run_unguaranteed_main_procedure = (main) => {
|
|
46
|
-
main(
|
|
44
|
+
main({
|
|
47
45
|
'arguments': _ei.array_literal(process.argv.slice(2))
|
|
48
46
|
}).__start(() => {
|
|
49
47
|
}, ($) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exupery-core-bin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
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,7 +27,7 @@
|
|
|
27
27
|
"url": "git+https://github.com/corno/exupery-core.git"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"exupery-core-async": "^0.1.
|
|
31
|
-
"exupery-core-internals": "^0.1.
|
|
30
|
+
"exupery-core-async": "^0.1.38",
|
|
31
|
+
"exupery-core-internals": "^0.1.11"
|
|
32
32
|
}
|
|
33
33
|
}
|