@player-tools/cli 0.10.0-next.0 → 0.10.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.
@@ -43,7 +43,6 @@ class DependencyVersionsCheck extends base_command_1.BaseCommand {
43
43
  ignore: flags.ignore,
44
44
  };
45
45
  }
46
- /* eslint-disable complexity */
47
46
  async run() {
48
47
  const results = {
49
48
  exitCode: 0,
@@ -75,7 +75,7 @@ class DSLCompile extends base_command_1.BaseCommand {
75
75
  const context = await this.createCompilerContext();
76
76
  /** Compile a file from the DSL format into JSON */
77
77
  const compileFile = async (file) => {
78
- // eslint-disable-next-line @typescript-eslint/no-var-requires
78
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
79
79
  const requiredModule = require(path_1.default.resolve(file));
80
80
  const defaultExport = requiredModule.default;
81
81
  if (!defaultExport) {
@@ -113,7 +113,6 @@ class BaseCommand extends core_1.Command {
113
113
  const lsp = new json_language_service_1.PlayerLanguageService();
114
114
  const { plugins } = await this.getPlayerConfig();
115
115
  for (let i = 0; i < plugins.length; i++) {
116
- // eslint-disable-next-line no-await-in-loop
117
116
  await plugins[i].onCreateLanguageService?.(lsp, exp);
118
117
  }
119
118
  return lsp;
@@ -126,7 +125,6 @@ class BaseCommand extends core_1.Command {
126
125
  });
127
126
  const { plugins } = await this.getPlayerConfig();
128
127
  for (let i = 0; i < plugins.length; i++) {
129
- // eslint-disable-next-line no-await-in-loop
130
128
  await plugins[i].onCreateDSLCompiler?.(compiler);
131
129
  }
132
130
  return compiler;
@@ -135,7 +133,6 @@ class BaseCommand extends core_1.Command {
135
133
  const transforms = [];
136
134
  const { plugins } = await this.getPlayerConfig();
137
135
  for (let i = 0; i < plugins.length; i++) {
138
- // eslint-disable-next-line no-await-in-loop
139
136
  await plugins[i].onConvertXLR?.(format, transforms);
140
137
  }
141
138
  return transforms;
@@ -144,7 +141,6 @@ class BaseCommand extends core_1.Command {
144
141
  const compilerContext = new compilation_context_1.CompilationContext(await this.createDSLCompiler());
145
142
  const { plugins } = await this.getPlayerConfig();
146
143
  for (let i = 0; i < plugins.length; i++) {
147
- // eslint-disable-next-line no-await-in-loop
148
144
  await plugins[i].createCompilerContext?.(compilerContext);
149
145
  }
150
146
  return compilerContext;
package/dist/utils/fs.js CHANGED
@@ -13,12 +13,9 @@ function forcePathSeparatorToPosix(input) {
13
13
  /** Check if an input is a directory, if it is, then swap it to a globbed path */
14
14
  const convertToFileGlob = (input, glob) => {
15
15
  return input.map((i) => {
16
- try {
17
- if (fs_1.default.statSync(i).isDirectory()) {
18
- return forcePathSeparatorToPosix(path_1.default.join(i, glob));
19
- }
16
+ if (fs_1.default.statSync(i, { throwIfNoEntry: false })?.isDirectory()) {
17
+ return forcePathSeparatorToPosix(path_1.default.join(i, glob));
20
18
  }
21
- catch (e) { }
22
19
  return forcePathSeparatorToPosix(i);
23
20
  });
24
21
  };
@@ -67,7 +67,6 @@ function fixExpressionArgNames(sourceNode, generatedTypeRef, checker) {
67
67
  paramsNode.elementTypes?.forEach((gArg, index) => {
68
68
  const functionArg = arrowFunction.parameters?.[index + offset];
69
69
  if (!gArg.name && functionArg) {
70
- // eslint-disable-next-line no-param-reassign
71
70
  gArg.name = functionArg.name.getText();
72
71
  }
73
72
  });
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "dist"
6
6
  ],
7
7
  "name": "@player-tools/cli",
8
- "version": "0.10.0-next.0",
8
+ "version": "0.10.1",
9
9
  "main": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
11
11
  "oclif": {
@@ -21,12 +21,12 @@
21
21
  "player": "bin/run"
22
22
  },
23
23
  "dependencies": {
24
- "@player-tools/dsl": "0.10.0-next.0",
25
- "@player-tools/json-language-service": "0.10.0-next.0",
26
- "@player-tools/xlr": "0.10.0-next.0",
27
- "@player-tools/xlr-converters": "0.10.0-next.0",
28
- "@player-tools/xlr-sdk": "0.10.0-next.0",
29
- "@player-tools/xlr-utils": "0.10.0-next.0",
24
+ "@player-tools/dsl": "0.10.1",
25
+ "@player-tools/json-language-service": "0.10.1",
26
+ "@player-tools/xlr": "0.10.1",
27
+ "@player-tools/xlr-converters": "0.10.1",
28
+ "@player-tools/xlr-sdk": "0.10.1",
29
+ "@player-tools/xlr-utils": "0.10.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",