Skip to content

Commit

Permalink
chore(build): update dist/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored and actions-user committed Apr 26, 2021
1 parent 8ac2f03 commit c2e851b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5855,6 +5855,9 @@ function requirePeerDependency(dependency) {
// src/run-tester.ts
var INTERNAL_CONFIG = "eslint-remote-tester-compare-internal.config.js";
var RESULTS_TMP = "/tmp/results.json";
var DEFAULT_CONFIG = {
cache: false
};
var CONFIGURATION_TEMPLATE = (configuration, configurationPath) => `// Generated by eslint-remote-tester-run-action
const fs = require('fs');
Expand All @@ -5876,12 +5879,16 @@ async function runTester(configLocation) {
if (!import_fs.default.existsSync(usersConfigLocation)) {
throw new Error(`Unable to find eslint-remote-tester config with path ${usersConfigLocation}`);
}
let config;
let usersConfig;
try {
config = require(usersConfigLocation);
usersConfig = require(usersConfigLocation);
} catch (e) {
throw e;
}
const config = {
...DEFAULT_CONFIG,
...usersConfig
};
import_fs.default.writeFileSync(INTERNAL_CONFIG, CONFIGURATION_TEMPLATE(config, usersConfigLocation));
const {validateConfig} = requirePeerDependency("eslint-remote-tester");
await validateConfig(config, false);
Expand Down

0 comments on commit c2e851b

Please sign in to comment.