@paralect/hive 0.0.9 → 0.0.11
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.
package/cli/helpers/mergeDirs.js
CHANGED
|
@@ -4,6 +4,11 @@ const path = require('path');
|
|
|
4
4
|
|
|
5
5
|
function shouldIgnore(filePath) {
|
|
6
6
|
const ignoredDirs = ['node_modules', 'dist', '.git'];
|
|
7
|
+
|
|
8
|
+
if (filePath.includes('node_modules/@paralect/hive')) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
|
|
7
12
|
return ignoredDirs.some(dir => filePath.includes(path.sep + dir + path.sep));
|
|
8
13
|
}
|
|
9
14
|
|
|
@@ -57,6 +62,7 @@ async function copyRootFiles(sourceDir, destDir) {
|
|
|
57
62
|
|
|
58
63
|
async function mergeDirectories(sourceDir1, sourceDir2, targetDir) {
|
|
59
64
|
// First, copy all contents from sourceDir1 to targetDir
|
|
65
|
+
console.log('sourceDir1', sourceDir1);
|
|
60
66
|
await copyDir(sourceDir1, targetDir);
|
|
61
67
|
|
|
62
68
|
// Then, copy and extend/overwrite with contents from sourceDir2
|