diff --git a/plugin/src/lib/config.ts b/plugin/src/lib/config.ts index 3087b0c..587cd45 100644 --- a/plugin/src/lib/config.ts +++ b/plugin/src/lib/config.ts @@ -13,10 +13,10 @@ import { PLUGIN_CONFIG_PATH, RUNNER_OUTPUT_PATH } from './index.js'; async function createRunnerConfig(runnerScriptPath: string, options: ElixirAuditPluginOptions): Promise { const {path} = options; - await ensureDirectoryExists(dirname(PLUGIN_CONFIG_PATH)); await ensureDirectoryExists(dirname(RUNNER_OUTPUT_PATH)); + await ensureDirectoryExists(dirname(PLUGIN_CONFIG_PATH)); + await writeFile(RUNNER_OUTPUT_PATH, JSON.stringify({})); await writeFile(PLUGIN_CONFIG_PATH, JSON.stringify(path)); - await writeFile(RUNNER_OUTPUT_PATH, JSON.stringify({})); return { command: `node`,