@plugjs/tsrun 0.4.22 → 0.4.23
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/parser.d.mts +19 -19
- package/dist/tsrun.mjs +3 -3
- package/package.json +5 -5
package/dist/parser.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ declare namespace yargsParser {
|
|
|
9
9
|
/** Non-option arguments */
|
|
10
10
|
_: Array<string | number>;
|
|
11
11
|
/** Arguments after the end-of-options flag `--` */
|
|
12
|
-
|
|
12
|
+
"--"?: Array<string | number>;
|
|
13
13
|
/** All remaining options */
|
|
14
14
|
[argName: string]: any;
|
|
15
15
|
}
|
|
@@ -29,41 +29,41 @@ declare namespace yargsParser {
|
|
|
29
29
|
|
|
30
30
|
interface Configuration {
|
|
31
31
|
/** Should variables prefixed with --no be treated as negations? Default is `true` */
|
|
32
|
-
|
|
32
|
+
"boolean-negation": boolean;
|
|
33
33
|
/** Should hyphenated arguments be expanded into camel-case aliases? Default is `true` */
|
|
34
|
-
|
|
34
|
+
"camel-case-expansion": boolean;
|
|
35
35
|
/** Should arrays be combined when provided by both command line arguments and a configuration file. Default is `false` */
|
|
36
|
-
|
|
36
|
+
"combine-arrays": boolean;
|
|
37
37
|
/** Should keys that contain . be treated as objects? Default is `true` */
|
|
38
|
-
|
|
38
|
+
"dot-notation": boolean;
|
|
39
39
|
/** Should arguments be coerced into an array when duplicated. Default is `true` */
|
|
40
|
-
|
|
40
|
+
"duplicate-arguments-array": boolean;
|
|
41
41
|
/** Should array arguments be coerced into a single array when duplicated. Default is `true` */
|
|
42
|
-
|
|
42
|
+
"flatten-duplicate-arrays": boolean;
|
|
43
43
|
/** Should arrays consume more than one positional argument following their flag. Default is `true` */
|
|
44
|
-
|
|
44
|
+
"greedy-arrays": boolean;
|
|
45
45
|
/** Should nargs consume dash options as well as positional arguments. Default is `false` */
|
|
46
|
-
|
|
46
|
+
"nargs-eats-options": boolean;
|
|
47
47
|
/** Should parsing stop at the first text argument? This is similar to how e.g. ssh parses its command line. Default is `false` */
|
|
48
|
-
|
|
48
|
+
"halt-at-non-option": boolean;
|
|
49
49
|
/** The prefix to use for negated boolean variables. Default is `'no-'` */
|
|
50
|
-
|
|
50
|
+
"negation-prefix": string;
|
|
51
51
|
/** Should keys that look like numbers be treated as such? Default is `true` */
|
|
52
|
-
|
|
52
|
+
"parse-numbers": boolean;
|
|
53
53
|
/** Should positional keys that look like numbers be treated as such? Default is `true` */
|
|
54
|
-
|
|
54
|
+
"parse-positional-numbers": boolean;
|
|
55
55
|
/** Should unparsed flags be stored in -- or _. Default is `false` */
|
|
56
|
-
|
|
56
|
+
"populate--": boolean;
|
|
57
57
|
/** Should a placeholder be added for keys not set via the corresponding CLI argument? Default is `false` */
|
|
58
|
-
|
|
58
|
+
"set-placeholder-key": boolean;
|
|
59
59
|
/** Should a group of short-options be treated as boolean flags? Default is `true` */
|
|
60
|
-
|
|
60
|
+
"short-option-groups": boolean;
|
|
61
61
|
/** Should aliases be removed before returning results? Default is `false` */
|
|
62
|
-
|
|
62
|
+
"strip-aliased": boolean;
|
|
63
63
|
/** Should dashed keys be removed before returning results? This option has no effect if camel-case-expansion is disabled. Default is `false` */
|
|
64
|
-
|
|
64
|
+
"strip-dashed": boolean;
|
|
65
65
|
/** Should unknown options be treated like regular arguments? An unknown option is one that is not configured in opts. Default is `false` */
|
|
66
|
-
|
|
66
|
+
"unknown-options-as-args": boolean;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
interface Options {
|
package/dist/tsrun.mjs
CHANGED
|
@@ -1088,7 +1088,7 @@ function _help() {
|
|
|
1088
1088
|
${$blu}${$und}Options:${$rst}
|
|
1089
1089
|
|
|
1090
1090
|
${$wht}-h --help ${$rst} Help! You're reading it now!
|
|
1091
|
-
${$wht}-v --version ${$rst} Version! This one: ${"0.4.
|
|
1091
|
+
${$wht}-v --version ${$rst} Version! This one: ${"0.4.23"}!
|
|
1092
1092
|
${$wht}-e --eval ${$rst} Evaluate the script
|
|
1093
1093
|
${$wht}-p --print ${$rst} Evaluate the script and print the result
|
|
1094
1094
|
${$wht} --force-esm${$rst} Force transpilation of ".ts" files to EcmaScript modules
|
|
@@ -1131,7 +1131,7 @@ main(import.meta.url, (args) => {
|
|
|
1131
1131
|
case "help":
|
|
1132
1132
|
return _help();
|
|
1133
1133
|
case "version":
|
|
1134
|
-
console.log(`v${"0.4.
|
|
1134
|
+
console.log(`v${"0.4.23"}`);
|
|
1135
1135
|
process.exitCode = 1;
|
|
1136
1136
|
return;
|
|
1137
1137
|
case "eval":
|
|
@@ -1145,7 +1145,7 @@ main(import.meta.url, (args) => {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
if (!_script) {
|
|
1147
1147
|
return new Promise((resolve2, reject) => {
|
|
1148
|
-
console.log(`Welcome to Node.js ${process.version} (tsrun v${"0.4.
|
|
1148
|
+
console.log(`Welcome to Node.js ${process.version} (tsrun v${"0.4.23"}).`);
|
|
1149
1149
|
console.log('Type ".help" for more information.');
|
|
1150
1150
|
const repl = _repl.start();
|
|
1151
1151
|
const history = _path.resolve(_os.homedir(), ".node_repl_history");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugjs/tsrun",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./dist/cli.mjs",
|
|
6
6
|
"types": "./dist/cli.d.mts",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"author": "Juit Developers <developers@juit.com>",
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"esbuild": "^0.19.
|
|
24
|
+
"esbuild": "^0.19.4"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@plugjs/eslint-plugin": "^0.1.
|
|
27
|
+
"@plugjs/eslint-plugin": "^0.1.13",
|
|
28
28
|
"@types/node": "<19",
|
|
29
|
-
"@types/yargs-parser": "^21.0.
|
|
30
|
-
"eslint": "^8.
|
|
29
|
+
"@types/yargs-parser": "^21.0.1",
|
|
30
|
+
"eslint": "^8.50.0",
|
|
31
31
|
"typescript": "^5.2.2",
|
|
32
32
|
"yargs-parser": "^21.1.1"
|
|
33
33
|
},
|