@player-cli/cli 0.0.2--canary.3.100 → 0.1.1-next.1

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.
@@ -1,14 +1,14 @@
1
1
  import { BaseCommand } from "../../utils/base-command";
2
- /** A command to get @player-ui/@player-tools dependency versions and issue warnings/recommendations based on them */
2
+ /** A command to get @player-ui/@player-lang dependency versions and issue warnings/recommendations based on them */
3
3
  export default class DependencyVersionsCheck extends BaseCommand {
4
4
  static summary: string;
5
5
  static description: string;
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[] | 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>;
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>;
12
12
  };
13
13
  private getOptions;
14
14
  run(): Promise<{
@@ -8,15 +8,15 @@ const easy_table_1 = tslib_1.__importDefault(require("easy-table"));
8
8
  const child_process_1 = tslib_1.__importDefault(require("child_process"));
9
9
  const core_1 = require("@oclif/core");
10
10
  const base_command_1 = require("../../utils/base-command");
11
- /** A command to get @player-ui/@player-tools dependency versions and issue warnings/recommendations based on them */
11
+ /** A command to get @player-ui/@player-lang dependency versions and issue warnings/recommendations based on them */
12
12
  class DependencyVersionsCheck extends base_command_1.BaseCommand {
13
- static summary = "Checks for @player-ui/@player-tools dependency version mismatches and issues warnings/solutions accordingly";
13
+ static summary = "Checks for @player-ui/@player-lang dependency version mismatches and issues warnings/solutions accordingly";
14
14
  static description = `Consider the following:
15
15
  - The interpretation of TOP-LEVEL and NESTED dependencies is as follows:
16
16
  a. TOP-LEVEL dependencies only have one 'node_modules' in their path
17
17
  b. NESTED dependencies have more than one 'node_modules' in their path
18
- - @player-ui/@player-tools dependencies are fetched not only from inside the 'node_modules' at the top of the repository in which it is run but also from 'node_modules' in sub-directories.
19
- For example, if you have some 'node_modules' inside of a 'packages' folder that contains @player-ui/@player-tools dependencies, then these will also be fetched.
18
+ - @player-ui/@player-lang dependencies are fetched not only from inside the 'node_modules' at the top of the repository in which it is run but also from 'node_modules' in sub-directories.
19
+ For example, if you have some 'node_modules' inside of a 'packages' folder that contains @player-ui/@player-lang dependencies, then these will also be fetched.
20
20
  The display of such dependencies also depends on the first bullet point.
21
21
  `;
22
22
  static flags = {
@@ -78,7 +78,7 @@ class DependencyVersionsCheck extends base_command_1.BaseCommand {
78
78
  else {
79
79
  console.log("To add string pattern(s) for files to exclude, consider adding them after the -i flag.");
80
80
  }
81
- console.log("Inspecting the @player-ui/@player-tools dependencies in the current repository...");
81
+ console.log("Inspecting the @player-ui/@player-lang dependencies in the current repository...");
82
82
  let packageJsons = globby_1.default.sync("**/node_modules/{@player,@player-language,@web-player}/*/package.json");
83
83
  if (ignore) {
84
84
  // It is necessary to filter here rather than to pass extra options to globSync.
@@ -201,11 +201,11 @@ class DependencyVersionsCheck extends base_command_1.BaseCommand {
201
201
  console.log(table.toString());
202
202
  }
203
203
  if (topLevelVersionsExist) {
204
- console.log("\nTOP-LEVEL @player-ui/@player-tools DEPENDENCIES:");
204
+ console.log("\nTOP-LEVEL @player-ui/@player-lang DEPENDENCIES:");
205
205
  printTable(versionToTopLevelDependencyMap, sortedTopLevelVersions, topLevelDependenciesTable);
206
206
  }
207
207
  if (nestedVersionsExist) {
208
- console.log("\nNESTED @player-ui/@player-tools DEPENDENCIES:");
208
+ console.log("\nNESTED @player-ui/@player-lang DEPENDENCIES:");
209
209
  printTable(versionToNestedDependencyMap, sortedNestedVersions, nestedDependenciesTable);
210
210
  }
211
211
  if ((!topLevelVersionsExist && nestedVersions.length === 1) ||
@@ -213,51 +213,51 @@ class DependencyVersionsCheck extends base_command_1.BaseCommand {
213
213
  (!nestedVersionsExist && !topLevelVersionsExist) ||
214
214
  singleVersionsMatch) {
215
215
  if (singleVersionsMatch) {
216
- console.log("Unique top-level and nested @player-ui/@player-tools versions match. ");
216
+ console.log("Unique top-level and nested @player-ui/@player-lang versions match. ");
217
217
  }
218
218
  if (!topLevelVersionsExist && nestedVersions.length === 1) {
219
- console.log(`No top-level @player-ui/@player-tools dependencies exist. Only a single nested @player-ui/@player-tools version exists, ${nestedVersions[0]}`);
219
+ console.log(`No top-level @player-ui/@player-lang dependencies exist. Only a single nested @player-ui/@player-lang version exists, ${nestedVersions[0]}`);
220
220
  }
221
221
  if (!nestedVersionsExist && topLevelVersions.length === 1) {
222
- console.log(`No nested @player-ui/@player-tools dependencies exist. Only a single top-level @player-ui/@player-tools version exists, ${topLevelVersions[0]}`);
222
+ console.log(`No nested @player-ui/@player-lang dependencies exist. Only a single top-level @player-ui/@player-lang version exists, ${topLevelVersions[0]}`);
223
223
  }
224
224
  if (!nestedVersionsExist && !topLevelVersionsExist) {
225
- console.log("No @player-ui/@player-tools dependencies exist.");
225
+ console.log("No @player-ui/@player-lang dependencies exist.");
226
226
  }
227
- console.log("There are no issues related to @player-ui/@player-tools dependency versioning. You are good to go! ");
227
+ console.log("There are no issues related to @player-ui/@player-lang dependency versioning. You are good to go! ");
228
228
  this.exit(results.exitCode);
229
229
  return results;
230
230
  }
231
231
  console.log(chalkNegative("WARNINGS:"));
232
232
  if (multipleTopLevelVersionsDetected) {
233
- console.log("- There are multiple top-level @player-ui/@player-tools dependency versions.");
233
+ console.log("- There are multiple top-level @player-ui/@player-lang dependency versions.");
234
234
  }
235
235
  if (multipleNestedVersionsDetected) {
236
- console.log("- There are multiple nested @player-ui/@player-tools dependency versions.");
236
+ console.log("- There are multiple nested @player-ui/@player-lang dependency versions.");
237
237
  }
238
238
  if (singleVersionsMismatch) {
239
- console.log("- Mismatch between the top-level and the nested @player-ui/@player-tools dependency.");
239
+ console.log("- Mismatch between the top-level and the nested @player-ui/@player-lang dependency.");
240
240
  }
241
241
  console.log(chalkPositive("RECOMMENDATIONS:"));
242
242
  if (multipleTopLevelVersionsDetected) {
243
- console.log(`- Resolve all top-level @player-ui/@player-tools dependencies to the same version. Consider updating them to the latest player version you have, ${highestTopLevelVersion}. When all top-level @player-ui/@player-tools dependencies are resolved, run the current CLI again to obtain recommendations about nested @player-ui/@player-tools dependencies.`);
243
+ console.log(`- Resolve all top-level @player-ui/@player-lang dependencies to the same version. Consider updating them to the latest player version you have, ${highestTopLevelVersion}. When all top-level @player-ui/@player-lang dependencies are resolved, run the current CLI again to obtain recommendations about nested @player-ui/@player-lang dependencies.`);
244
244
  }
245
245
  else if (highestTopLevelVersion && highestNestedVersion) {
246
246
  // highestTopLevelVersion && highestNestedVersion defined means: single top-level version, one or more nested versions
247
247
  if (cmp(highestTopLevelVersion, highestNestedVersion) >= 1) {
248
248
  // when only a single top-level version is detected, it is simply the highest
249
- console.log(`- The highest @player-ui/@player-tools version is ${highestTopLevelVersion} at the top level. Please add resolutions for all nested @player-ui/@player-tools versions to this version or bump the nested versions to it.`);
249
+ console.log(`- The highest @player-ui/@player-lang version is ${highestTopLevelVersion} at the top level. Please add resolutions for all nested @player-ui/@player-lang versions to this version or bump the nested versions to it.`);
250
250
  }
251
251
  else {
252
- console.log(`- The highest @player-ui/@player-tools version is ${highestNestedVersion} at the nested level. Please bump the top-level version, ${highestTopLevelVersion}, to ${highestNestedVersion}.`);
252
+ console.log(`- The highest @player-ui/@player-lang version is ${highestNestedVersion} at the nested level. Please bump the top-level version, ${highestTopLevelVersion}, to ${highestNestedVersion}.`);
253
253
  if (multipleNestedVersionsDetected) {
254
- console.log(`- Also, please add resolutions or bump the versions for nested @player-ui/@player-tools dependencies whose version is not ${highestNestedVersion}.`);
254
+ console.log(`- Also, please add resolutions or bump the versions for nested @player-ui/@player-lang dependencies whose version is not ${highestNestedVersion}.`);
255
255
  }
256
256
  }
257
257
  }
258
258
  else if (highestNestedVersion && multipleNestedVersionsDetected) {
259
259
  // no top-level version defined, multiple nested versions
260
- console.log(`- The highest @player-ui/@player-tools version is ${highestNestedVersion} at the nested level. Please add resolutions for all nested @player-ui/@player-tools versions to this version or bump the nested versions to it.`);
260
+ console.log(`- The highest @player-ui/@player-lang version is ${highestNestedVersion} at the nested level. Please add resolutions for all nested @player-ui/@player-lang versions to this version or bump the nested versions to it.`);
261
261
  }
262
262
  // Although no errors have occurred when the code reaches here, a non-zero exit code of WARNING_EXIT_CODE = 1 is still used to indicate
263
263
  // the idea of "warnings" being issued due to dependency version discrepancies
@@ -2,15 +2,14 @@ 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;
6
5
  static flags: {
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>;
6
+ input: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
9
8
  "skip-validation": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
9
  exp: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
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>;
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>;
14
13
  };
15
14
  private getOptions;
16
15
  run(): Promise<{
@@ -9,7 +9,7 @@ const mkdirp_1 = tslib_1.__importDefault(require("mkdirp"));
9
9
  const log_symbols_1 = tslib_1.__importDefault(require("log-symbols"));
10
10
  const figures_1 = tslib_1.__importDefault(require("figures"));
11
11
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
12
- const dsl_1 = require("@player-tools/dsl");
12
+ const react_dsl_1 = require("@player-lang/react-dsl");
13
13
  const base_command_1 = require("../../utils/base-command");
14
14
  const fs_2 = require("../../utils/fs");
15
15
  const babel_register_1 = require("../../utils/babel-register");
@@ -18,7 +18,6 @@ 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;
22
21
  static flags = {
23
22
  ...base_command_1.BaseCommand.flags,
24
23
  input: core_1.Flags.string({
@@ -90,7 +89,7 @@ class DSLCompile extends base_command_1.BaseCommand {
90
89
  }
91
90
  const preProcessedValue = await context.dslCompiler.hooks.preProcessFlow.call(defaultExport);
92
91
  const { type: contentType, extension: ext } = (await context.hooks.identifyContentType.call(file, preProcessedValue)) || {
93
- type: (0, dsl_1.fingerprintContent)(preProcessedValue, file) || "unknown",
92
+ type: (0, react_dsl_1.fingerprintContent)(preProcessedValue, file) || "unknown",
94
93
  extension: ".json",
95
94
  };
96
95
  let relativePath = path_1.default.relative(input, file);
@@ -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[] | 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>;
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>;
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[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
6
+ files: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
7
7
  exp: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
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>;
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>;
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, 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>;
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>;
13
13
  };
14
14
  private getOptions;
15
15
  run(): Promise<{
@@ -7,7 +7,7 @@ const fs_1 = tslib_1.__importDefault(require("fs"));
7
7
  const path_1 = tslib_1.__importDefault(require("path"));
8
8
  const globby_1 = tslib_1.__importDefault(require("globby"));
9
9
  const log_symbols_1 = tslib_1.__importDefault(require("log-symbols"));
10
- const xlr_converters_1 = require("@player-tools/xlr-converters");
10
+ const xlr_converters_1 = require("@xlr-lib/xlr-converters");
11
11
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
12
12
  const base_command_1 = require("../../utils/base-command");
13
13
  const visitors_1 = require("../../utils/xlr/visitors");
@@ -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.string({
32
+ mode: core_1.Flags.enum({
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, 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>;
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>;
13
13
  };
14
14
  private getOptions;
15
15
  run(): Promise<{
@@ -5,7 +5,7 @@ const core_1 = require("@oclif/core");
5
5
  const path_1 = tslib_1.__importDefault(require("path"));
6
6
  const fs_1 = tslib_1.__importDefault(require("fs"));
7
7
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
8
- const xlr_sdk_1 = require("@player-tools/xlr-sdk");
8
+ const xlr_sdk_1 = require("@xlr-lib/xlr-sdk");
9
9
  const log_symbols_1 = tslib_1.__importDefault(require("log-symbols"));
10
10
  const base_command_1 = require("../../utils/base-command");
11
11
  const PlayerImportMap = new Map([
@@ -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.string({
33
+ lang: core_1.Flags.enum({
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"],
@@ -1,6 +1,6 @@
1
- import type { PlayerLanguageService } from "@player-tools/json-language-service";
1
+ import type { PlayerLanguageService } from "@player-lang/json-language-service";
2
2
  import type { PlayerCLIPlugin } from "./index";
3
- import { TSManifest } from "@player-tools/xlr";
3
+ import { TSManifest } from "@xlr-lib/xlr";
4
4
  /** Loads XLRs into the LSP via the manifest.js file */
5
5
  export interface LSPAssetsPluginModuleConfig {
6
6
  type: "module";
@@ -1,4 +1,4 @@
1
- import type { PlayerLanguageService, PlayerLanguageServicePlugin } from "@player-tools/json-language-service";
1
+ import type { PlayerLanguageService, PlayerLanguageServicePlugin } from "@player-lang/json-language-service";
2
2
  import type { PlayerCLIPlugin } from "./index";
3
3
  /**
4
4
  * Handles adding a LSP Plugin to the LSP
@@ -1,5 +1,5 @@
1
- import type { PlayerLanguageService } from "@player-tools/json-language-service";
2
- import type { TransformFunction } from "@player-tools/xlr";
1
+ import type { PlayerLanguageService } from "@player-lang/json-language-service";
2
+ import type { TransformFunction } from "@xlr-lib/xlr";
3
3
  import type { PlayerCLIPlugin } from "./index";
4
4
  /**
5
5
  * Handles adding XLR transforms to the LSP's XLR SDK
@@ -1,7 +1,7 @@
1
- import type { PlayerLanguageService } from "@player-tools/json-language-service";
2
- import type { DSLCompiler } from "@player-tools/dsl";
3
- import type { ExportTypes } from "@player-tools/xlr-sdk";
4
- import type { TransformFunction } from "@player-tools/xlr";
1
+ import type { PlayerLanguageService } from "@player-lang/json-language-service";
2
+ import type { DSLCompiler } from "@player-lang/react-dsl";
3
+ import type { ExportTypes } from "@xlr-lib/xlr-sdk";
4
+ import type { TransformFunction } from "@xlr-lib/xlr";
5
5
  import type { CompilationContext } from "../utils/compilation-context";
6
6
  export * from "./LSPAssetsPlugin";
7
7
  export * from "./LSPPluginPlugin";
@@ -1,15 +1,15 @@
1
1
  import { Command } from "@oclif/core";
2
- import { PlayerLanguageService } from "@player-tools/json-language-service";
3
- import { DSLCompiler } from "@player-tools/dsl";
4
- import type { ExportTypes } from "@player-tools/xlr-sdk";
5
- import type { TransformFunction } from "@player-tools/xlr";
2
+ import { PlayerLanguageService } from "@player-lang/json-language-service";
3
+ import { DSLCompiler } from "@player-lang/react-dsl";
4
+ import type { ExportTypes } from "@xlr-lib/xlr-sdk";
5
+ import type { TransformFunction } from "@xlr-lib/xlr";
6
6
  import type { PlayerConfigResolvedShape } from "../config";
7
7
  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, import("@oclif/core/lib/interfaces").CustomOptions>;
12
- loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
11
+ config: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
12
+ loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string>;
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(exitCode?: number): never;
24
+ exit(code?: number): void;
25
25
  }
26
26
  //# sourceMappingURL=base-command.d.ts.map
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const core_1 = require("@oclif/core");
6
6
  const path_1 = tslib_1.__importDefault(require("path"));
7
7
  const cosmiconfig_1 = require("cosmiconfig");
8
- const json_language_service_1 = require("@player-tools/json-language-service");
9
- const dsl_1 = require("@player-tools/dsl");
8
+ const json_language_service_1 = require("@player-lang/json-language-service");
9
+ const react_dsl_1 = require("@player-lang/react-dsl");
10
10
  const compilation_context_1 = require("./compilation-context");
11
11
  const log_levels_1 = require("./log-levels");
12
12
  const configLoader = (0, cosmiconfig_1.cosmiconfig)("player");
@@ -118,7 +118,7 @@ class BaseCommand extends core_1.Command {
118
118
  return lsp;
119
119
  }
120
120
  async createDSLCompiler() {
121
- const compiler = new dsl_1.DSLCompiler({
121
+ const compiler = new react_dsl_1.DSLCompiler({
122
122
  error: this.error.bind(this),
123
123
  warn: this.warn.bind(this),
124
124
  log: this.log.bind(this),
@@ -145,17 +145,9 @@ class BaseCommand extends core_1.Command {
145
145
  }
146
146
  return compilerContext;
147
147
  }
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);
148
+ exit(code) {
149
+ if (process.env.NODE_ENV !== "test") {
150
+ super.exit(code);
159
151
  }
160
152
  }
161
153
  }
@@ -1,4 +1,4 @@
1
- import type { DSLCompiler, SerializeContext } from "@player-tools/dsl";
1
+ import type { DSLCompiler, SerializeContext } from "@player-lang/react-dsl";
2
2
  import { AsyncSeriesBailHook } from "tapable-ts";
3
3
  export interface identifyContentReturn {
4
4
  /** The identified type the content should be compiled as */
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CompilationContext = void 0;
4
- const dsl_1 = require("@player-tools/dsl");
4
+ const react_dsl_1 = require("@player-lang/react-dsl");
5
5
  const tapable_ts_1 = require("tapable-ts");
6
6
  /**
7
7
  *
@@ -39,7 +39,7 @@ class CompilationContext {
39
39
  constructor(dslCompiler) {
40
40
  this.dslCompiler = dslCompiler;
41
41
  this.hooks.compileContent.tap("default", async ({ type }, content) => {
42
- if ((0, dsl_1.isDefaultCompilerContentType)(type)) {
42
+ if ((0, react_dsl_1.isDefaultCompilerContentType)(type)) {
43
43
  const compilationResults = await this.dslCompiler.serialize(content, {
44
44
  type,
45
45
  });
@@ -1,4 +1,4 @@
1
- import type { SerializeType } from "@player-tools/dsl";
1
+ import type { SerializeType } from "@player-lang/react-dsl";
2
2
  import type { TaskProgressRenderer } from "./task-runner";
3
3
  export interface DSLCompileFileData {
4
4
  /** the file name */
@@ -1,4 +1,4 @@
1
- import type { Manifest } from "@player-tools/xlr";
1
+ import type { Manifest } from "@xlr-lib/xlr";
2
2
  import type { VisitorProps } from "./types";
3
3
  /** export all exported types in the file */
4
4
  export declare function fileVisitor(args: VisitorProps): Manifest | undefined;
@@ -1,4 +1,4 @@
1
- import type { Manifest } from "@player-tools/xlr";
1
+ import type { Manifest } from "@xlr-lib/xlr";
2
2
  import type { VisitorProps } from "./types";
3
3
  /** visit nodes finding exported classes */
4
4
  export declare function pluginVisitor(args: VisitorProps): Manifest | undefined;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pluginVisitor = pluginVisitor;
4
4
  const tslib_1 = require("tslib");
5
- const xlr_utils_1 = require("@player-tools/xlr-utils");
5
+ const xlr_utils_1 = require("@xlr-lib/xlr-utils");
6
6
  const path_1 = tslib_1.__importDefault(require("path"));
7
7
  const typescript_1 = tslib_1.__importDefault(require("typescript"));
8
8
  const fs_1 = tslib_1.__importDefault(require("fs"));
@@ -1,4 +1,4 @@
1
- import type { TsConverter } from "@player-tools/xlr-converters";
1
+ import type { TsConverter } from "@xlr-lib/xlr-converters";
2
2
  import type ts from "typescript";
3
3
  export interface VisitorProps {
4
4
  /** The source file to process */
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.3.100",
8
+ "version": "0.1.1-next.1",
9
9
  "main": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
11
11
  "oclif": {
@@ -21,19 +21,19 @@
21
21
  "player": "bin/run"
22
22
  },
23
23
  "dependencies": {
24
- "@player-tools/dsl": "^0.12.0",
25
- "@player-tools/json-language-service": "^0.12.0",
26
- "@player-tools/xlr": "^0.12.0",
27
- "@player-tools/xlr-converters": "^0.12.0",
28
- "@player-tools/xlr-sdk": "^0.12.0",
29
- "@player-tools/xlr-utils": "^0.12.0",
24
+ "@player-lang/react-dsl": "0.0.2-next.0",
25
+ "@player-lang/json-language-service": "0.0.2-next.0",
26
+ "@xlr-lib/xlr": "0.1.1-next.1",
27
+ "@xlr-lib/xlr-converters": "^0.1.1-next.1",
28
+ "@xlr-lib/xlr-sdk": "0.1.1-next.1",
29
+ "@xlr-lib/xlr-utils": "0.1.1-next.1",
30
30
  "@babel/plugin-transform-react-jsx-source": "^7.23.3",
31
31
  "@babel/preset-env": "^7.23.3",
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": "^4.8.0",
36
- "@oclif/plugin-plugins": "^5.4.56",
35
+ "@oclif/core": "1.9.0",
36
+ "@oclif/plugin-plugins": "^1.9.0",
37
37
  "chalk": "^4.0.1",
38
38
  "cosmiconfig": "^7.0.1",
39
39
  "cross-fetch": "^3.0.5",