eddev 0.2.0-beta.22 → 0.2.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -339,10 +339,11 @@ function copyFiles(sourceFolder, targetFolder, patterns) {
|
|
|
339
339
|
console.log("Files are", files);
|
|
340
340
|
// Replace sourceFolder in each path, and copy to target folder
|
|
341
341
|
return [4 /*yield*/, Promise.all(files.map(function (file) {
|
|
342
|
-
console.log("Copying", file,
|
|
342
|
+
console.log("Copying", file, file.replace(sourceFolder, targetFolder));
|
|
343
343
|
var stat = (0, fs_1.statSync)(file);
|
|
344
|
+
console.log("File exists", file);
|
|
344
345
|
if (!stat.isDirectory()) {
|
|
345
|
-
return (0,
|
|
346
|
+
return (0, fs_extra_1.copy)(file, file.replace(sourceFolder, targetFolder));
|
|
346
347
|
}
|
|
347
348
|
}))];
|
|
348
349
|
case 2:
|
|
@@ -477,7 +478,7 @@ function getPort(port) {
|
|
|
477
478
|
var _this = this;
|
|
478
479
|
return __generator(this, function (_a) {
|
|
479
480
|
switch (_a.label) {
|
|
480
|
-
case 0: return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require("
|
|
481
|
+
case 0: return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require("net")); })];
|
|
481
482
|
case 1:
|
|
482
483
|
createServer = (_a.sent()).createServer;
|
|
483
484
|
return [4 /*yield*/, new Promise(function (resolve) {
|