chore: debug output

This commit is contained in:
cha0s 2022-03-24 03:00:59 -05:00
parent 3118952e33
commit 7ef45e9b8d

View File

@ -50,12 +50,14 @@ else {
module.exports = JSON.parse(readFileSync(join(cacheDirectory, 'eslintrc.json')).toString());
}
catch (error) {
const {stdout} = spawnSync('node', [__filename], {
const {stderr, stdout} = spawnSync('node', [__filename], {
env: {
FLECKS_CORE_SYNC_FOR_ESLINT: true,
...process.env,
},
});
// eslint-disable-next-line no-console
console.error(stderr.toString());
const json = stdout.toString();
try {
statSync(join(FLECKS_CORE_ROOT, 'node_modules'));