mirror of
https://github.com/smogon/sprites.git
synced 2026-08-20 00:34:22 -05:00
deploy/script: add read()
This commit is contained in:
@@ -188,6 +188,11 @@ function makeEnv2(srcDir : string, queue: ActionQueue) {
|
||||
}
|
||||
queue.copy(nodePath.join(srcDir, src), dst);
|
||||
},
|
||||
|
||||
read(srcp : pathlib.PathLike) : string {
|
||||
const src = pathlib.format(pathlib.path(srcp));
|
||||
return fs.readFileSync(nodePath.join(srcDir, src), 'utf8');
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user