From d43ce543a110beab23b26dcf440337a13ea9bbf5 Mon Sep 17 00:00:00 2001 From: MariaAga Date: Mon, 15 Jul 2024 14:45:02 +0100 Subject: [PATCH] debugging --- script/npm_test_plugin.js | 3 ++- script/plugin_webpack_directories.js | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/script/npm_test_plugin.js b/script/npm_test_plugin.js index e9c9a58cbcf..dd08b3970f7 100755 --- a/script/npm_test_plugin.js +++ b/script/npm_test_plugin.js @@ -52,6 +52,7 @@ function runChildProcess(args, pluginPath) { } const runTests = async () => { var dirs = packageJsonDirs(); + console.log('dirs', dirs); function pluginDefinesLint(pluginPath) { var packageHasNodeModules = fs.existsSync(`${pluginPath}/node_modules`); // skip gems var packageData = JSON.parse(fs.readFileSync(`${pluginPath}/package.json`)); @@ -125,7 +126,7 @@ const runTests = async () => { '--color', ...passedArgs, ]; - +console.log('args', args); // eslint-disable-next-line no-await-in-loop await runChildProcess(args, pluginPath); // Run every plugin test in a separate process if (fs.existsSync(combinedConfigPath)) { diff --git a/script/plugin_webpack_directories.js b/script/plugin_webpack_directories.js index 08d006e9c10..e411ecb7d7f 100644 --- a/script/plugin_webpack_directories.js +++ b/script/plugin_webpack_directories.js @@ -47,8 +47,11 @@ var webpackedDirs = stderr => { }); }; -var getPluginDirs = stderr => - JSON.parse(sanitizeWebpackDirs(webpackedDirs(stderr))); +var getPluginDirs = stderr =>{ + +console.log('webpackedDirs', webpackedDirs(stderr)); + return JSON.parse(sanitizeWebpackDirs(webpackedDirs(stderr))); +} var packageJsonDirs = stderr => pluginPath('package.json')(getPluginDirs(stderr)).map(path.dirname);