UNPKG

@atomist/automation-client

Version:
9 lines 422 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const projectUtils_1 = require("../util/projectUtils"); function copyFiles(from, to) { return projectUtils_1.toPromise(from.streamFiles()) .then(files => Promise.all(files.map(f => f.getContent().then(content => to.addFile(f.path, content))))).then(() => to); } exports.copyFiles = copyFiles; //# sourceMappingURL=projectUtils.js.map