From 48c6fba9555aac2868db09d76770b3a549cd72cd Mon Sep 17 00:00:00 2001 From: Steve Taylor Date: Fri, 5 Apr 2024 02:07:48 +1100 Subject: [PATCH] Fix broken dynamic import --- xunit-viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xunit-viewer.js b/xunit-viewer.js index 54f2ffd..60f7007 100644 --- a/xunit-viewer.js +++ b/xunit-viewer.js @@ -1,5 +1,6 @@ import fs from 'fs' import path from 'path' +import { showHelp } from './src/cli/args.js' import getDescription from './src/cli/get-description.js' import getFiles from './src/cli/get-files.js' import getSuites from './src/cli/get-suites.js' @@ -14,7 +15,6 @@ export default async (args) => { const results = args.results if (!fs.existsSync(results)) { - const { showHelp } = import('./src/cli/args.js') showHelp() console.log(logger.error('\n The folder/file:'), logger.file(results), logger.error('does not exist')) if (!args.script) process.exit(1)