mirror of
https://github.com/smogon/sprites.git
synced 2026-08-20 00:34:22 -05:00
Remove debug output from tools/deflopt
This is on the hot path. Revert this commit if debugging is needed.
This commit is contained in:
5
pnpm-lock.yaml
generated
5
pnpm-lock.yaml
generated
@@ -1,9 +1,6 @@
|
||||
importers:
|
||||
tools/deflopt:
|
||||
dependencies:
|
||||
debug: 4.1.1
|
||||
specifiers:
|
||||
debug: ^4.1.1
|
||||
specifiers: {}
|
||||
tools/deploy:
|
||||
dependencies:
|
||||
commander: 5.1.0
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
import debugfn from 'debug';
|
||||
|
||||
export default debugfn('deflopt');
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
import cp from 'child_process';
|
||||
import debug from './debug.js';
|
||||
|
||||
/*
|
||||
Output looks something like:
|
||||
@@ -32,7 +31,6 @@ export function deflopt(exe, file) {
|
||||
// command line switches.
|
||||
file = file.replace(/\//g, "\\");
|
||||
|
||||
debug("File at: " + file);
|
||||
const output = cp.execFileSync(
|
||||
"wine",
|
||||
[exe, file],
|
||||
@@ -40,9 +38,7 @@ export function deflopt(exe, file) {
|
||||
// Wine doesn't even like it when the current directory is on fuse!
|
||||
// What a persnickety program!
|
||||
cwd: '/'});
|
||||
debug("Output: " + JSON.stringify(output));
|
||||
const processed = parse("Number of files processed", output);
|
||||
const rewritten = parse("Number of files rewritten", output);
|
||||
debug(`Processed ${processed}, rewritten ${rewritten}`);
|
||||
return {processed, rewritten};
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"type":"module","dependencies":{"debug":"^4.1.1"}}
|
||||
{"type":"module","dependencies":{}}
|
||||
|
||||
Reference in New Issue
Block a user