@player-cli/cli 0.0.2--canary.6.49 → 0.0.2--canary.3.100
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/commands/dependency-versions/check.d.ts +3 -3
- package/dist/commands/dsl/compile.d.ts +6 -5
- package/dist/commands/dsl/compile.js +1 -0
- package/dist/commands/dsl/validate.d.ts +4 -4
- package/dist/commands/json/validate.d.ts +4 -4
- package/dist/commands/xlr/compile.d.ts +5 -5
- package/dist/commands/xlr/compile.js +1 -1
- package/dist/commands/xlr/convert.d.ts +5 -5
- package/dist/commands/xlr/convert.js +1 -1
- package/dist/utils/base-command.d.ts +3 -3
- package/dist/utils/base-command.js +11 -3
- package/package.json +3 -3
|
@@ -6,9 +6,9 @@ export default class DependencyVersionsCheck extends BaseCommand {
|
|
|
6
6
|
static flags: {
|
|
7
7
|
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
8
|
path: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
ignore: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
10
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
11
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
9
|
+
ignore: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
12
|
};
|
|
13
13
|
private getOptions;
|
|
14
14
|
run(): Promise<{
|
|
@@ -2,14 +2,15 @@ import { BaseCommand } from "../../utils/base-command";
|
|
|
2
2
|
/** A command to compile player DSL content into JSON */
|
|
3
3
|
export default class DSLCompile extends BaseCommand {
|
|
4
4
|
static description: string;
|
|
5
|
+
static strict: boolean;
|
|
5
6
|
static flags: {
|
|
6
|
-
input: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
-
output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
input: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
9
|
"skip-validation": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
10
|
exp: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
-
severity: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
11
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
11
|
+
severity: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
14
|
};
|
|
14
15
|
private getOptions;
|
|
15
16
|
run(): Promise<{
|
|
@@ -18,6 +18,7 @@ const validate_2 = tslib_1.__importDefault(require("./validate"));
|
|
|
18
18
|
/** A command to compile player DSL content into JSON */
|
|
19
19
|
class DSLCompile extends base_command_1.BaseCommand {
|
|
20
20
|
static description = "Compile Player DSL files into JSON";
|
|
21
|
+
static strict = false;
|
|
21
22
|
static flags = {
|
|
22
23
|
...base_command_1.BaseCommand.flags,
|
|
23
24
|
input: core_1.Flags.string({
|
|
@@ -3,10 +3,10 @@ import { BaseCommand } from "../../utils/base-command";
|
|
|
3
3
|
export default class Validate extends BaseCommand {
|
|
4
4
|
static description: string;
|
|
5
5
|
static flags: {
|
|
6
|
-
files: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
7
|
-
severity: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
9
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
files: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
|
+
severity: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
10
|
};
|
|
11
11
|
private getOptions;
|
|
12
12
|
private getTSConfig;
|
|
@@ -3,11 +3,11 @@ import { BaseCommand } from "../../utils/base-command";
|
|
|
3
3
|
export default class Validate extends BaseCommand {
|
|
4
4
|
static description: string;
|
|
5
5
|
static flags: {
|
|
6
|
-
files: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
|
|
6
|
+
files: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
7
|
exp: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
severity: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
9
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
10
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
severity: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
11
|
};
|
|
12
12
|
private getOptions;
|
|
13
13
|
run(): Promise<{
|
|
@@ -5,11 +5,11 @@ import { BaseCommand } from "../../utils/base-command";
|
|
|
5
5
|
export default class XLRCompile extends BaseCommand {
|
|
6
6
|
static description: string;
|
|
7
7
|
static flags: {
|
|
8
|
-
input: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
9
|
-
output: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
10
|
-
mode: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
11
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
input: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
|
+
output: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
mode: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
13
|
};
|
|
14
14
|
private getOptions;
|
|
15
15
|
run(): Promise<{
|
|
@@ -29,7 +29,7 @@ class XLRCompile extends base_command_1.BaseCommand {
|
|
|
29
29
|
description: "Output directory to write results to.",
|
|
30
30
|
default: "./dist",
|
|
31
31
|
}),
|
|
32
|
-
mode: core_1.Flags.
|
|
32
|
+
mode: core_1.Flags.string({
|
|
33
33
|
char: "m",
|
|
34
34
|
description: "Search strategy for types to export: plugin (default, looks for exported EnchancedPlayerPlugin classes) or type (all exported types)",
|
|
35
35
|
options: ["plugin", "types"],
|
|
@@ -5,11 +5,11 @@ import { BaseCommand } from "../../utils/base-command";
|
|
|
5
5
|
export default class XLRConvert extends BaseCommand {
|
|
6
6
|
static description: string;
|
|
7
7
|
static flags: {
|
|
8
|
-
input: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
9
|
-
output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
10
|
-
lang: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
11
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
input: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
9
|
+
output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
|
+
lang: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
11
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
13
|
};
|
|
14
14
|
private getOptions;
|
|
15
15
|
run(): Promise<{
|
|
@@ -30,7 +30,7 @@ class XLRConvert extends base_command_1.BaseCommand {
|
|
|
30
30
|
char: "o",
|
|
31
31
|
description: "Output directory to write results to.",
|
|
32
32
|
}),
|
|
33
|
-
lang: core_1.Flags.
|
|
33
|
+
lang: core_1.Flags.string({
|
|
34
34
|
char: "l",
|
|
35
35
|
description: "Search strategy for types to export: plugin (default, looks for exported EnchancedPlayerPlugin classes) or type (all exported types)",
|
|
36
36
|
options: ["TypeScript"],
|
|
@@ -8,8 +8,8 @@ import { CompilationContext } from "./compilation-context";
|
|
|
8
8
|
/** The common configs for all */
|
|
9
9
|
export declare abstract class BaseCommand extends Command {
|
|
10
10
|
static flags: {
|
|
11
|
-
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
11
|
+
config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
12
|
+
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
13
13
|
};
|
|
14
14
|
static strict: boolean;
|
|
15
15
|
private resolvedConfig;
|
|
@@ -21,6 +21,6 @@ export declare abstract class BaseCommand extends Command {
|
|
|
21
21
|
createDSLCompiler(): Promise<DSLCompiler>;
|
|
22
22
|
getXLRTransforms(format: ExportTypes): Promise<Array<TransformFunction>>;
|
|
23
23
|
createCompilerContext(): Promise<CompilationContext>;
|
|
24
|
-
exit(
|
|
24
|
+
exit(exitCode?: number): never;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=base-command.d.ts.map
|
|
@@ -145,9 +145,17 @@ class BaseCommand extends core_1.Command {
|
|
|
145
145
|
}
|
|
146
146
|
return compilerContext;
|
|
147
147
|
}
|
|
148
|
-
exit
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
// Override exit to prevent process termination during tests
|
|
149
|
+
exit(exitCode = 0) {
|
|
150
|
+
if (process.env.NODE_ENV === "test") {
|
|
151
|
+
// In test mode, skip the actual exit process
|
|
152
|
+
// We satisfy the 'never' return type by using type assertion
|
|
153
|
+
// since tests need the function to return normally
|
|
154
|
+
return undefined;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
// In production, delegate to parent which terminates the process
|
|
158
|
+
return super.exit(exitCode);
|
|
151
159
|
}
|
|
152
160
|
}
|
|
153
161
|
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
7
7
|
"name": "@player-cli/cli",
|
|
8
|
-
"version": "0.0.2--canary.
|
|
8
|
+
"version": "0.0.2--canary.3.100",
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"oclif": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@babel/preset-react": "^7.23.3",
|
|
33
33
|
"@babel/preset-typescript": "^7.23.3",
|
|
34
34
|
"@babel/register": "^7.23.3",
|
|
35
|
-
"@oclif/core": "
|
|
36
|
-
"@oclif/plugin-plugins": "^
|
|
35
|
+
"@oclif/core": "^4.8.0",
|
|
36
|
+
"@oclif/plugin-plugins": "^5.4.56",
|
|
37
37
|
"chalk": "^4.0.1",
|
|
38
38
|
"cosmiconfig": "^7.0.1",
|
|
39
39
|
"cross-fetch": "^3.0.5",
|