factorio-test-cli 3.0.3 → 3.0.5

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.
Files changed (3) hide show
  1. package/mod-setup.js +1 -1
  2. package/package.json +1 -1
  3. package/run.js +1 -3
package/mod-setup.js CHANGED
@@ -44,7 +44,7 @@ async function configureModPath(modPath, modsDir) {
44
44
  throw new CliError(`info.json file at ${infoJsonFile} does not contain a string property "name".`);
45
45
  }
46
46
  const resultPath = path.join(modsDir, modName);
47
- const stat = await fsp.stat(resultPath).catch(() => undefined);
47
+ const stat = await fsp.lstat(resultPath).catch(() => undefined);
48
48
  if (stat)
49
49
  await fsp.rm(resultPath, { recursive: true });
50
50
  await fsp.symlink(modPath, resultPath, "junction");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-test-cli",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "A CLI to run FactorioTest.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/run.js CHANGED
@@ -32,9 +32,7 @@ Examples:
32
32
  `)
33
33
  .argument("[filter...]", "Test patterns to filter (OR logic)");
34
34
  registerAllCliOptions(thisCommand);
35
- thisCommand.action((patterns, options) => {
36
- runTests(patterns, options);
37
- });
35
+ thisCommand.action((patterns, options) => runTests(patterns, options));
38
36
  async function setupTestRun(patterns, options) {
39
37
  const fileConfig = loadConfig(options.config);
40
38
  mergeCliConfig(fileConfig, options);