mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
That was a terrible idea
This commit is contained in:
@@ -37,7 +37,7 @@ module.exports = class ClocCommand extends Command {
|
|||||||
if (this.cache) return this.cache;
|
if (this.cache) return this.cache;
|
||||||
const { stdout, stderr } = await exec(
|
const { stdout, stderr } = await exec(
|
||||||
path.join(__dirname, '..', '..', 'node_modules', '.bin', 'cloc'),
|
path.join(__dirname, '..', '..', 'node_modules', '.bin', 'cloc'),
|
||||||
['--json', '--exclude-dir=node_modules', '--unicode', path.join(__dirname, '..', '..')]
|
['--json', '--exclude-dir=node_modules', path.join(__dirname, '..', '..')]
|
||||||
);
|
);
|
||||||
if (stderr) throw new Error(stderr.trim());
|
if (stderr) throw new Error(stderr.trim());
|
||||||
this.cache = JSON.parse(stdout.trim());
|
this.cache = JSON.parse(stdout.trim());
|
||||||
|
|||||||
Reference in New Issue
Block a user