mirror of
https://github.com/smogon/sprites.git
synced 2026-08-22 01:35:02 -05:00
deploy: ignore dir in input to copy
This commit is contained in:
@@ -36,8 +36,13 @@ program
|
||||
|
||||
for (const file of files) {
|
||||
const src = pathlib.path(file);
|
||||
const result = scr.runOnFile(src);
|
||||
const dst = pathlib.join(outputDir, pathlib.path(src, result));
|
||||
const input = pathlib.update(src, {dir: ""});
|
||||
const result = scr.runOnFile(input);
|
||||
if (result === undefined) {
|
||||
throw new Error(`undefined output on ${file}`);
|
||||
}
|
||||
const output = pathlib.path(input, result);
|
||||
const dst = pathlib.join(outputDir, output);
|
||||
aq.copy(src, dst);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user