Fix dependency cycle between util and config-utils

This commit is contained in:
Henry Mercer 2023-07-19 16:48:21 +01:00
parent d577d6f6b1
commit 004f976bef
21 changed files with 283 additions and 288 deletions

2
lib/codeql.js generated
View file

@ -777,7 +777,7 @@ async function generateCodeScanningConfig(codeql, config, features, logger) {
if (config.augmentationProperties.injectedMlQueries) {
// We need to inject the ML queries into the original user input before
// we pass this on to the CLI, to make sure these get run.
const packString = await util.getMlPoweredJsQueriesPack(codeql);
const packString = await (0, config_utils_1.getMlPoweredJsQueriesPack)(codeql);
if (augmentedConfig.packs === undefined)
augmentedConfig.packs = [];
if (Array.isArray(augmentedConfig.packs)) {