deploy/script: add read()

This commit is contained in:
Christopher Monsanto
2020-08-24 04:38:34 -04:00
parent 173d65746f
commit bb10c65842

View File

@@ -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');
},
}
}