eddev 0.2.0-beta.21 → 0.2.0-beta.22

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.
@@ -310,14 +310,6 @@ function writeAPIProxies(sourceFolder, targetFolder) {
310
310
  var name = file.replace(sourceFolder, "");
311
311
  var outputPath = (0, path_1.join)(targetFolder, name);
312
312
  var relativePath = (0, path_1.relative)(outputPath, file);
313
- console.log({
314
- file: file,
315
- name: name,
316
- outputPath: outputPath,
317
- relativePath: relativePath,
318
- sourceFolder: sourceFolder,
319
- targetFolder: targetFolder,
320
- });
321
313
  return (0, promises_1.writeFile)(outputPath, "import handler from \"".concat(file, "\"; export default handler;"));
322
314
  }))];
323
315
  case 2:
@@ -348,7 +340,10 @@ function copyFiles(sourceFolder, targetFolder, patterns) {
348
340
  // Replace sourceFolder in each path, and copy to target folder
349
341
  return [4 /*yield*/, Promise.all(files.map(function (file) {
350
342
  console.log("Copying", file, (0, path_1.join)(targetFolder, file.replace(sourceFolder, "")));
351
- (0, promises_1.copyFile)(file, (0, path_1.join)(targetFolder, file.replace(sourceFolder, "")));
343
+ var stat = (0, fs_1.statSync)(file);
344
+ if (!stat.isDirectory()) {
345
+ return (0, promises_1.copyFile)(file, (0, path_1.join)(targetFolder, file.replace(sourceFolder, "")));
346
+ }
352
347
  }))];
353
348
  case 2:
354
349
  // Replace sourceFolder in each path, and copy to target folder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.2.0-beta.21",
3
+ "version": "0.2.0-beta.22",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {