deploy: add join()

This commit is contained in:
Christopher Monsanto 2020-07-28 14:31:56 -04:00
parent e7c61afd39
commit a02fd9231f

View File

@ -20,6 +20,10 @@ export function format({dir, name, ext} : Path) {
return pathlib.format({dir, name, ext : dotext});
}
export function join(s : string, {dir, name, ext} : Path) : Path {
return {dir: pathlib.join(s, dir), name, ext};
}
export type Delta = Partial<Path>;
export function update({dir, name, ext} : Path, delta : Delta) : Path {